?
What will be the output of the following Python code?
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)
class tester:
def __init__(self, id):
self.id = str(id)
id="224"
>>>temp = tester(12)
>>>print(temp.id)
Join the Discussion
Login to post a comment or share your explanation.
Login