C
Cyrille Lavigne
Hi!
I'm very new to the art of programming and I just learn OOP
in python. I want to know why the following bit of code crash.
Code:
class Exemple:
def __init__(self):
self.list=[]
self.var1=3
c=Exemple
print c.list, c.var1
Thanks
I'm very new to the art of programming and I just learn OOP
in python. I want to know why the following bit of code crash.
Code:
class Exemple:
def __init__(self):
self.list=[]
self.var1=3
c=Exemple
print c.list, c.var1
Thanks