summaryrefslogtreecommitdiffhomepage
path: root/python3.html.markdown
diff options
context:
space:
mode:
authorMarco Camenzind <marco.camenzind@students.ffhs.ch>2019-11-14 00:06:40 +0100
committerMarco Camenzind <marco.camenzind@students.ffhs.ch>2019-11-14 00:06:40 +0100
commita2a2e69e8170c39902cbcf71319e10da5b9f3ff3 (patch)
tree73f3c47b74f317fd46334e72f092d4f40f065a2b /python3.html.markdown
parentd37473589491fc16cdd96e33e8c80ed7cc083183 (diff)
Fixed typo: uptil => until
Diffstat (limited to 'python3.html.markdown')
-rw-r--r--python3.html.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index 61c53408..d09c2819 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -8,6 +8,7 @@ contributors:
- ["evuez", "http://github.com/evuez"]
- ["Rommel Martinez", "https://ebzzry.io"]
- ["Roberto Fernandez Diaz", "https://github.com/robertofd1995"]
+ - ["caminsha", "https://github.com/caminsha"]
filename: learnpython3.py
---
@@ -230,7 +231,7 @@ li[4] # Raises an IndexError
# (It's a closed/open range for you mathy types.)
li[1:3] # Return list from index 1 to 3 => [2, 4]
li[2:] # Return list starting from index 2 => [4, 3]
-li[:3] # Return list from beginning uptil index 3 => [1, 2, 4]
+li[:3] # Return list from beginning until index 3 => [1, 2, 4]
li[::2] # Return list selecting every second entry => [1, 4]
li[::-1] # Return list in reverse order => [3, 4, 2, 1]
# Use any combination of these to make advanced slices