subject

Question # 6 Dropdown
Choose the line of code that completes this program.

Output:

dog named Tiger

class pet:
def __init__(self, strSpecies, strName):
self. species = strSpecies
self. petName = strName

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

def changeName(self, newName):
self. petName = newName

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

print(myPetA)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Annie is creating a corporate report for a company’s annual meeting. in the report, she wants to add the signature of various department heads. which device can annie use to capture signatures to include in the report? a. printer b. monitor c. e-reader d. digitizing tablet
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
What statement best describes operating systems? it’s possible for modern computers to function without operating systems. most operating systems are free or very inexpensive. operating systems are managed by the computer’s microprocessor (cpu). operating systems manage the computer’s random access memory (ram).
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
The blank button automatically displays next to the data when you select a range of numeric data which is an available option for creating a chart
Answers: 3
question
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
You know the right answer?
Question # 6 Dropdown
Choose the line of code that completes this program.

Outpu...
Questions
question
History, 18.03.2021 22:00
question
History, 18.03.2021 22:00
question
Biology, 18.03.2021 22:00
question
Mathematics, 18.03.2021 22:00
Questions on the website: 13722363