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!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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 Answer
0
self.name=name
27th Jun 2021, 6:43 AM
Tia