June 2018
Intermediate to advanced
294 pages
7h 5m
English
def addition(x,y): return x + y
ips = ['192.1.1.1','192.1.1.254']for ip in ips: print ip
# class nameclass Host: #class constructor def __init__(self,name): self.name = name def print_host(self): print self.name#let's call it from somewhere elseh = Host('SRV-001')h.print_host()
try: [put your code here]except Exception, e: exception_message = str(e) print("Error: " + exception_message)