mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-28 17:59:05 +03:00
Merge pull request #3781 from Benur21/patch-1
Explaining better and improving consistence
This commit is contained in:
commit
ce95d2763e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user