1class ClassName(object): #"(object)" isn't mandatory unless this class inherit from another
2 def __init__(self, var1=0, var2):
3
4 #the name of the construct must be "__init__" or it won't work
5 #the arguments "self" is mandatory but you can add more if you want
6 self.age = var1
7 self.name = var2
8
9 #the construct will be execute when you declare an instance of this class
10
11 def otherFunction(self):
12
13 #the other one work like any basic fonction but in every methods,
14 #the first argument (here "self") return to the class in which you are
15