MCQs > IT & Programming > Python > Output of the following Python code from the given options. class St: stm = 'Y' stm = 'X' def __init__(self, r): self.r = r def setdd(self, dd): self.dd = dd def getdd(self): return self.dd a = St(101) a.setdd('Y, UP') a.setdd('X') print(a.getdd()) '>m the given options.

class St:

Python MCQs

Select the correct output of the following Python code from the given options.

class St:

stm = 'Y' stm = 'X' def __init__(self, r): self.r = r def setdd(self, dd): self.dd = dd def getdd(self): return self.dd a = St(101) a.setdd("Y, UP") a.setdd("X") print(a.getdd()) ">

Answer

Correct Answer:


Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it