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!
a = [1, 2, 3] b = a a = a.append(5) print(b)
When a is copied to b , Python create a reference from b to the list assigned to a . As a list is a mutable object, any changes done to the list is reflected when accessing the list from b . (stackoverflow.com/questions/2612802/how-to-clone-or-copy-...)
Question difficulty: 🔵🔵🔵🔵🔵