The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #129
a = {}
b = {}
print(a is b)
As {} is a mutable object (dictionary), Python creates a new memory address for each object created. As both a and b refer to different objects, they are not considered as the same object by Python. (towardsdatascience.com/assignment-shallow-or-deep-a-story...)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) August 19, 2020
a = {}
b = {}
print(a is b)
False
True#python #python3 #pythonprogramming #learnpython
Question difficulty: 🔵🔵🔵🔵🔵
Similar questions: