Menu
×
×
Correct!
Exercise:What is the correct syntax to assign a "init" function to a class?
class Person:
def @(8)(self, name, age):
self.name = name
self.age = age
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 95 exercises.
Are you sure you want to continue?