Fill in the blanks to create a class and its constructor, taking one argument and assigning it to the "name" attribute. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
- 3

Fill in the blanks to create a class and its constructor, taking one argument and assigning it to the "name" attribute.

Then create an object of the class class student: def __init__ (self, name): self _________ = name test = Student ("Bob")

27th Jun 2021, 5:54 AM
Tia
1 ответ
0
self.name=name
27th Jun 2021, 6:43 AM
Tia