class MyClass: i=1213456 def __init__(self): print('me is here') def f(self): return 'HelloWorld!' x=MyClass() print(x.i) print(x.f()) xf=x.f while True: print(xf()) class Complex: def __init__(self,real,imag): self.r=real self.i=imag x=Complex(3.0,-4.5) print(x.r,x.i) #instante obj # Data attributes need not be declared; like local variables, #they spring into existence when they are first assigned to. x.counterQ=1 while x.counterQ<10: x.counterQ=x.counterQ*2 print(x.counterQ) del x.counterQ