diff options
author | Levi Bostian <levi.bostian@gmail.com> | 2014-10-09 20:06:57 -0500 |
---|---|---|
committer | Levi Bostian <levi.bostian@gmail.com> | 2014-10-09 20:06:57 -0500 |
commit | e2b5279510846d841683bcee17642d984f2d87e0 (patch) | |
tree | 16b6d3fc6c199e07a30b1bcc83f5d6d830206e31 /python.html.markdown | |
parent | ce3fb267f7fc025e4d38556e033dde560da2a193 (diff) | |
parent | a2043f3adbbeaca72c7ef15c4505924903111c5c (diff) |
Merge pull request #796 from Oire/python-exp
[python/en] Adding exponentiation operator
Diffstat (limited to 'python.html.markdown')
-rw-r--r-- | python.html.markdown | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python.html.markdown b/python.html.markdown index 390c7b76..febfa119 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -3,6 +3,7 @@ language: python contributors: - ["Louie Dinh", "http://ldinh.ca"] - ["Amin Bandali", "http://aminbandali.com"] + - ["Andre Polykanine", "https://github.com/Oire"] filename: learnpython.py --- @@ -54,6 +55,9 @@ to Python 2.x. Look for another tour of Python 3 soon! # Modulo operation 7 % 3 # => 1 +# Exponentiation (x to the y'th power) +2**4 # => 16 + # Enforce precedence with parentheses (1 + 3) * 2 # => 8 |