Examveda

What will be the output of the following Python code?
class Count:
    def __init__(self, count = 0):
       self.__count = count
 
c1 = Count(2)
c2 = Count(2)
print(id(c1) == id(c2), end = " ")
 
s1 = "Good"
s2 = "Good"
print(id(s1) == id(s2))

A. True False

B. True True

C. False True

D. False False

Answer: Option C


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python