Froquiz
Home
Quizzes
Job Tracker
Senior Challenge
Get Certified
Blog
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
Is there a difference between b = a.copy() and b = a[:] for copying a list in Python?
Auto Skip
Report Issue
A.
a.copy() does deep copy, a[:] does shallow copy
B.
a.copy() does not create a new object
C.
Both do shallow copy, functionally equivalent
D.
a[:] is faster and should be preferred
Previous
Next