From 0dcc5640b6e1a9bba857114e1257a29aa9829ce9 Mon Sep 17 00:00:00 2001 From: Steven Basart Date: Sun, 13 Jul 2014 14:52:31 -0400 Subject: [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. --- python.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python.html.markdown') 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 -- cgit v1.2.3