Vidyalelo
Python · Q79

Python Introduction and basic

Programming · Python · question 79

Q79

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.
12
Answer
B.
224
C.
None
D.
Error

Answer: Option A

Solution

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