Is it possible to generate a list with the inputs in my function addperson, which I can print then with my function printperson? I'm a bit confused with that assignment at the moment. Thanks a lot!
class person: def __init__(self, name, id, age): self.name = name self.id = id self.age = age def addperson(self): name = input("Please enter name:") id = id(name) age = input("Please enter age:") #list with name, id and age should be generated def printperson(self): print(self.id, self.name, self.age)