Vidyalelo
Python · Q157

MCQs for Python Strings: Exam

Programming · Python · question 157

Q157

What will be the output of the following Python code? class tester: def __init__(self, id): self.id = str(id) id="224" >>>temp = tester(12) >>>print(temp.id)

A.
224
B.
Error
C.
12
Answer
D.
None

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board