+ 1

Why class are not displaying on pycharm

class Cat: def __init__(self, color, legs): self.color = color self.legs = legs felix = Cat("ginger", 4) rover = Cat("dog-colored", 4) stumpy = Cat("brown", 3)

31st Aug 2018, 9:05 PM
Whisper
Whisper - avatar
2 Answers
+ 2
nothing is displaying because you're not printing anything
31st Aug 2018, 9:12 PM
hinanawi
hinanawi - avatar
0
ok i will retry again
31st Aug 2018, 9:15 PM
Whisper
Whisper - avatar