diff options
Diffstat (limited to 'python3.html.markdown')
| -rw-r--r-- | python3.html.markdown | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/python3.html.markdown b/python3.html.markdown index d09c2819..20377801 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 @@ -467,8 +468,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)  """ | 
