class Tutu(): def __init__(self, name, color): self.color = color self.name = name def introduce(self): print("Hey {0} I am {1}".format(self.name, self.color) ) zizi = Tutu("Joe", "Potato") zizi.introduce() class Zuzu(Tutu): def __init__(self, potato): self.potato = potato def introduce(self): print("What's up {0}".format(self.potato)) x = input() pipi = Zuzu(x) pipi.introduce()
NameError: name 'd' is not defined
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)