×
×
Correct!
We have used the What is the correct syntax to execute the
class Person:
def __init__(self, fname):
self.firstname = fname
def printname(self):
print(self.firstname)
class Student(Person):
pass
x = Student("Mike")
@(13)
class Person:
def __init__(self, fname):
self.firstname = fname
def printname(self):
print(self.firstname)
class Student(Person):
pass
x = Student("Mike")
x.printname()
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 95 exercises.
Are you sure you want to continue?