summaryrefslogtreecommitdiffhomepage
path: root/python3.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'python3.html.markdown')
-rw-r--r--python3.html.markdown9
1 files changed, 5 insertions, 4 deletions
diff --git a/python3.html.markdown b/python3.html.markdown
index 45ee5c85..2b7c9490 100644
--- a/python3.html.markdown
+++ b/python3.html.markdown
@@ -58,11 +58,12 @@ Note: This article applies to Python 3 specifically. Check out [here](http://lea
2**3 # => 8
# Enforce precedence with parentheses
+1 + 3 * 2 # => 7
(1 + 3) * 2 # => 8
# Boolean values are primitives (Note: the capitalization)
-True
-False
+True # => True
+False # => False
# negate with not
not True # => False
@@ -470,8 +471,8 @@ prints:
1 cat
2 mouse
"""
-list = ["dog", "cat", "mouse"]
-for i, value in enumerate(list):
+animals = ["dog", "cat", "mouse"]
+for i, value in enumerate(animals):
print(i, value)
"""