Menu
×
×
Correct!
Exercise: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")
x.printname()
Not CorrectClick here to try again. Correct!Next ❯class Person: def __init__(self, fname): self.firstname = fname def printname(self): print(self.firstname) class Student(Person): pass x = Student("Mike") |