Compare commits

...

2 Commits

Author SHA1 Message Date
Jason Klebes
cd75b68359
Merge ec25b64568 into 9633245669 2024-09-30 08:17:05 +09:00
jsk
ec25b64568 [python/en] deep/shallow copy wording confusion 2024-09-25 13:14:29 +01:00

View File

@ -226,7 +226,7 @@ li[::-1] # Return list in reverse order => [3, 4, 2, 1]
# Use any combination of these to make advanced slices
# li[start:end:step]
# Make a one layer deep copy using slices
# Make a shallow copy using slices
li2 = li[:] # => li2 = [1, 2, 4, 3] but (li2 is li) will result in false.
# Remove arbitrary elements from a list with "del"