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 #328
n = 300
m = n
The first statement creates an integer object with value 300 , and n is a reference to it. The second statement creates a second reference to the already existing object. (oreilly.com/library/view/python-in-a/0596001886/ch04s03.h...)
Considering the code snippet below, how many objects and how many references are created?
— The Python Quiz (@thepythonquiz) September 10, 2020
n = 300
m = n
Two objects, two references
One object, one reference
One object, two references
Two objects, one reference#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: