diff options
author | Aswin Sanakan <aswinsanakan@gmail.com> | 2017-12-05 12:24:43 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-05 12:24:43 +0530 |
commit | 3386171160dd7fc3e4e6e9aaf2d5abfebdb38d6f (patch) | |
tree | 4ba7b8ffe6e3702f5fa39b6af6507eebad59228f | |
parent | 990f51293b1e85bc1146b291784474c82fabba37 (diff) |
Fix omitting in list and clarified comments
-rw-r--r-- | python3.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python3.html.markdown b/python3.html.markdown index 37987582..153384de 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -209,9 +209,9 @@ li[4] # Raises an IndexError # The start index is included, the end index is not # (It's a closed/open range for you mathy types.) li[1:3] # => [2, 4] -# Omit the end +# Omit the beginning and return the list li[2:] # => [4, 3] -# Omit the beginning +# Omit the end and return the list li[:3] # => [1, 2, 4] # Select every second entry li[::2] # =>[1, 4] |