mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Fix Python typo.
This commit is contained in:
parent
f4beb3bea9
commit
e13e00945d
@ -191,7 +191,7 @@ li[2:] # => [4, 3]
|
||||
li[:3] # => [1, 2, 4]
|
||||
# Select every second entry
|
||||
li[::2] # =>[1, 4]
|
||||
# Revert the list
|
||||
# Reverse the list
|
||||
li[::-1] # => [3, 4, 2, 1]
|
||||
# Use any combination of these to make advanced slices
|
||||
# li[start:end:step]
|
||||
|
Loading…
Reference in New Issue
Block a user