From 9e8184f455af5dcbbc1966cb50cbd0a007a85d2e Mon Sep 17 00:00:00 2001 From: Benur21 Date: Thu, 21 Nov 2019 20:15:38 +0000 Subject: Explaining better and improving consistence Added a version without parentheses to make it clear what they are doing; Added return values for True and False because 3 also has it. --- python3.html.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python3.html.markdown') diff --git a/python3.html.markdown b/python3.html.markdown index d09c2819..154acfe0 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 -- cgit v1.2.3