There's a list lst that is copied several times. For each line of code, choose which type of copy is created.
Computer scienceProgramming languagesPythonWorking with dataData types and operationsObjects in Python
Copy of an object
Types of copies
Report a typo
Choose one option for each row
| shallow copy | deep copy | not a copy | |
|---|---|---|---|
| new = lst | |||
| new = lst.copy() | |||
| new = copy.copy(lst) |
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.