MCQs > IT & Programming > Python > Output of the following Python code class Son: def __init_(self. n): self‌in = n print(self.n) def sayh(self): print(self.n) p = Son('0') p-sayho

Python MCQs

Find the output of the following Python code and choose the correct answer from the given options.

class Son:

def __init_(self. n):

self‌in = n

print(self.n)

def sayh(self):

print(self.n)

p = Son('0') p-sayho

Answer

Correct Answer: o 0

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