Why instance of class outputs error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
+ 1
15th Jul 2021, 10:59 AM
A͢J
A͢J - avatar