mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-26 09:21:00 +03:00
Corrected as per @iirelu's comment
This commit is contained in:
parent
39d8753d52
commit
68c9aed134
@ -56,7 +56,7 @@ to Python 2.x. Look for another tour of Python 3 soon!
|
||||
7 % 3 # => 1
|
||||
|
||||
# Exponentiation (x to the y'th power)
|
||||
2 ** 4 # => 16
|
||||
2**4 # => 16
|
||||
|
||||
# Enforce precedence with parentheses
|
||||
(1 + 3) * 2 # => 8
|
||||
|
@ -52,7 +52,7 @@ Note: This article applies to Python 3 specifically. Check out the other tutoria
|
||||
7 % 3 # => 1
|
||||
|
||||
# Exponentiation (x to the y'th power)
|
||||
2 ** 4 # => 16
|
||||
2**4 # => 16
|
||||
|
||||
# Enforce precedence with parentheses
|
||||
(1 + 3) * 2 # => 8
|
||||
|
Loading…
Reference in New Issue
Block a user