0
SytAx Err At Line Two. How.
class O: def__init__(self, name, color): self.name= name self. color=color def b(self): print(8) o=O("i", "c") print(o.name)
1 Antwort
+ 9
Because there is no space between def and __init__ method
class O: def__init__(self, name, color): self.name= name self. color=color def b(self): print(8) o=O("i", "c") print(o.name)