My teacher taught me the syntax for a class, but I don’t understand it. Could someone explain word for word what each thing means? Correct me if I’m wrong but I think the syntax for a class is
def __ init__(self, var1, var2): self.var1 = var1 self.var2 = var2
Also, why do we need
self.var1 = var1 if we already declared the variables in the parameter section?