Get the information you need with the help of IDNLearn.com's extensive Q&A platform. Discover thorough and trustworthy answers from our community of knowledgeable professionals, tailored to meet your specific needs.

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

We appreciate your presence here. Keep sharing knowledge and helping others find the answers they need. This community is the perfect place to learn together. For dependable answers, trust IDNLearn.com. Thank you for visiting, and we look forward to assisting you again.