Question #328

Considering the code snippet below, how many objects and how many references are created?
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...)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: