mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 10:01:38 +00:00
Merge pull request #1 from jhuang314/jhuang314-patch-1
Removed random "r"
This commit is contained in:
commit
ae372bb817
@ -198,7 +198,7 @@ li[::-1] # => [3, 4, 2, 1]
|
|||||||
|
|
||||||
# Remove arbitrary elements from a list with "del"
|
# Remove arbitrary elements from a list with "del"
|
||||||
del li[2] # li is now [1, 2, 3]
|
del li[2] # li is now [1, 2, 3]
|
||||||
r
|
|
||||||
# You can add lists
|
# You can add lists
|
||||||
li + other_li # => [1, 2, 3, 4, 5, 6]
|
li + other_li # => [1, 2, 3, 4, 5, 6]
|
||||||
# Note: values for li and for other_li are not modified.
|
# Note: values for li and for other_li are not modified.
|
||||||
|
Loading…
Reference in New Issue
Block a user