I just dont understand, It says no output and that my_dog is not defined.
class Pet:
def __i...
Computers and Technology, 30.04.2022 05:20, yair7
I just dont understand, It says no output and that my_dog is not defined.
class Pet:
def __init__(self):
self. name = ''
self. age = 0
def print_info(self):
print('Pet Information:')
print(' Name:', self. name)
print(' Age:', self. age)
class Dog(Pet):
def __init__(self):
Pet.__init__(self)
self. breed = ''
def main():
my_pet = Pet
my_dog = Dog
pet_name = input()
pet_age = int(input())
dog_name = input
dog_age = int(input())
dog_breed = input()
my_pet. name = pet_name
my_pet. age = pet_age
my_pet. print_info()
my_dog. name = dog_name
my_dog. age = dog_age
my_dog. breed = dog_breed
my_dog. print_info()
# TODO: Create generic pet (using pet_name, pet_age) and then call print_info()
# TODO: Create dog pet (using dog_name, dog_age, dog_breed) and then call print_info()
# TODO: Use my_dog. breed to output the breed of the dog
Answers: 1
Computers and Technology, 23.06.2019 06:30, eddsworldfrantic
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
Computers and Technology, 23.06.2019 10:30, badpotterchris
How would you categorize the software that runs on mobile devices? break down these apps into at least three basic categories and give an example of each.
Answers: 1
Computers and Technology, 23.06.2019 17:00, evanwall91
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
Answers: 1
Computers and Technology, 23.06.2019 17:20, Morehollie9428
What is the best assassins creed game?
Answers: 2
Mathematics, 03.05.2021 02:20
SAT, 03.05.2021 02:20
Mathematics, 03.05.2021 02:20
Mathematics, 03.05.2021 02:20
Mathematics, 03.05.2021 02:20
Mathematics, 03.05.2021 02:20
Mathematics, 03.05.2021 02:20