Getting Bound Method Error When Calling From Class In Python
Here is the code for the program: import petspgm def main(): pets = make_list() print('Here is the data you entered: ') display_lists(pets) def make_list(): pet_l
Solution 1:
You are missing the ()
to actually call the method
print("Pet's age is: " + str (item.get_pet_age))
Should be
print("Pet's age is: " + str (item.get_pet_age()))
Post a Comment for "Getting Bound Method Error When Calling From Class In Python"