subject

Choose the missing parts of the program to have the following output. 1. pet:
def __init__(2.
,strSpecies, strName):
self. species = strSpecies
self. petName = strName

def __str__(self):
return self. species + " named " + self. petName

# main program
myPetA = pet('dog', 'Spot')
myPetB = pet('cat', 'Fluffy')

3.

1. self, def, or class
2. strName, self, or def
3. myPetA. printPet(self), myPetA. printPet(), or print(myPetA)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
question
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
question
Computers and Technology, 24.06.2019 11:00
Need fast im timed in a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their projects.
Answers: 2
question
Computers and Technology, 24.06.2019 21:40
is on drugs i swear i ask a question and its not showing whats going
Answers: 2
You know the right answer?
Choose the missing parts of the program to have the following output. 1. pet:
def __init__(...
Questions
question
Mathematics, 20.03.2020 10:40
question
Mathematics, 20.03.2020 10:40
Questions on the website: 13722367