""" Parent Class: The class being inherited from Child Class: Inherits from the parent class. """ class Person: def __int__(self, fname, lname): self.firstname = fname self.lastname = lname def printName(self): print(self.firstname, self.lastname) x = Person("John", "Smith") x.printName()
So I am currently using w3schools to touch up on my python skills. I copied the following code from the website into my pycharm terminal, but I keep getting an error saying that the Person class does not take any arguments. What is going on here.