summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
authorSteven Basart <xksteven@users.noreply.github.com>2014-07-13 14:52:31 -0400
committerSteven Basart <xksteven@users.noreply.github.com>2014-07-13 14:52:31 -0400
commit0dcc5640b6e1a9bba857114e1257a29aa9829ce9 (patch)
treee0f4716f87adfe1c30734e7856458a3460a138c3 /python.html.markdown
parent2a9a4f39babe369395de580d0bd7f405a0283803 (diff)
[python/en] added int div, modulo, and scoping
Added integer or truncation division, the modulo operator which were missing from operators section. Added function scoping in the functions section.
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index d1b88b25..aa077e57 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -47,7 +47,7 @@ to Python 2.x. Look for another tour of Python 3 soon!
# Truncation or Integer division
5 // 3 # => 1
-5.0 // 3.0 # => 1.0
+5.0 // 3.0 # => 1.0 # works on floats too
# Modulo operation
7 % 3 # => 1