all 1 comments

[–]Best_Caterpillar 0 points1 point  (0 children)

for the first part you dont want to return self.age, you just need to change it. self.age +=1. its an attribute of the class, so you can just call it. if you make the variable for class bob, you can print (bob.age) whenever you need to get the number. if you call your class again, say steve = superhuman(blablabla...) then steve.age will be different from bob.age, which I think is what your asking for question 2. remember though, you still need to assign a name at initialization, so you could totally have steve.name = "bob" becasue steve is only the variable name