Question #316

What is the output of the code snippet below?
a = b = [0, 1, 2]
a[0] = 100

When the multiple assignments takes place, both a and b refer to the same object. Changing a will then change the object referenced by b . (

Comment on Disqus:

Comment on Twitter:

Question difficulty: πŸ”΅πŸ”΅πŸ”΅πŸ”΅πŸ”΅

Similar questions: