Welcome to Westonci.ca, where you can find answers to all your questions from a community of experienced professionals. Experience the ease of finding accurate answers to your questions from a knowledgeable community of professionals. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

Which line of code will create an instance of the pet class?

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

myPetA = pet('dog', 'Spot'), myPetA = pet(self, 'dog', 'Spot'), myPetA = new pet('dog', 'Spot'), myPetA .pet() = 'dog', 'Spot'


Sagot :

Answer:

myPetA = pet(self, 'dog', 'Spot')

Explanation:

I mite be wrong

Answer:

myPetA=pet('dog','Spot') or C

Explanation:

credit to who deserves it, the guy in the other answers comment section confimed my thought