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 16:00
An english teacher would like to divide 8 boys and 10 girls into groups, each with the same combination of boys and girls and nobody left out. what is the greatest number of groups that can be formed?
Answers: 2
Computers and Technology, 24.06.2019 01:30
How would you cite different books by the same author on the works cited page? moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry β a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. βββ. ballads in poetry β a critical review. dallas: garden books, 1962. print. moore, jack h. ballads in poetry β a critical review. dallas: garden books, 1962. print. moore, jack h. folk songs and ballads. salem: poetry press, 1999. print. moore, jack h. ballads in poetry β a critical review. dallas: garden books, 1962. print. βββ. folk songs and ballads. salem: poetry press, 1999. print.
Answers: 2
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
Answers: 1
Mathematics, 13.10.2020 21:01
Mathematics, 13.10.2020 21:01
English, 13.10.2020 21:01
Computers and Technology, 13.10.2020 21:01
Mathematics, 13.10.2020 21:01
Mathematics, 13.10.2020 21:01
Mathematics, 13.10.2020 21:01
English, 13.10.2020 21:01
Biology, 13.10.2020 21:01
Mathematics, 13.10.2020 21:01
Mathematics, 13.10.2020 21:01