Why instance of class outputs error? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Why instance of class outputs error?

I wrote a test code with classes. And I want to make Human class. I wrote initialize method without errors. But when I create new instance of class, it outputs error: Unexpected token '.' Gary = Human.new(....) ^ https://code.sololearn.com/cJzuh2zFYb5n/?ref=app

15th Jul 2021, 9:23 AM
a SnowFlake
a SnowFlake - avatar
1 Réponse
+ 1
15th Jul 2021, 10:59 AM
A͢J
A͢J - avatar