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!
import copy a = [, ] b = copy.copy(a) print(a is b)
When copy.copy() is used (shallow copy), the copy of the object has a new memory address but its elements refer to the elements of the copied object. Here, a and b are the same object with the same memory address. (towardsdatascience.com/assignment-shallow-or-deep-a-story...)
Question difficulty: 🔵🔵🔵🔵🔵