Why instance of class outputs error? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
+ 1
15th Jul 2021, 10:59 AM
A͢J
A͢J - avatar