What Will Be The Output Of The Following Python Codep Pre #245
What will be the output of the following Python code?</p> <pre><code class="language-python"> 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)) </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Strings - Python Strings - Quiz No.4.