From ab28c94946b98ad3cbce9401c631eb364a28d502 Mon Sep 17 00:00:00 2001 From: tomaszn Date: Thu, 4 Jul 2024 20:59:19 +0200 Subject: [PATCH] [python/en] Correct integer division examples (fixes #4989) --- python.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python.html.markdown b/python.html.markdown index a045e784..4f1c1cdb 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -39,7 +39,7 @@ syntactic clarity. It's basically executable pseudocode. 10 * 2 # => 20 35 / 5 # => 7.0 -# Integer division rounds towards zero for both positive and negative numbers. +# Floor division rounds towards negative infinity 5 // 3 # => 1 -5 // 3 # => -2 5.0 // 3.0 # => 1.0 # works on floats too