• Home
  • what is output of following code − class Count: def __init__(self, count=0): self.
Question 1:
what is output of following code −
class Count:
def __init__(self, count=0):
self.__count=count
a=Count(2)
b=Count(2)
print(id(a)==id(b), end = '' '')
c= ''hello''
d= ''hello''
print(id(c)==id(d))
A. True False
B. False True
C. False False
D. True True

These questions are from this test. Would you like to take a practice test?

Python Quiz 3 | Englishfreetest.com