From b03c1d98a26a265c81c17f71799449f801ecd1d1 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 1 May 2008 18:06:50 +0000 Subject: [PATCH] Don't output floats in prime example. --- Doc/tutorial/controlflow.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 4404ab239a..dee6e7c326 100644 --- a/Doc/tutorial/controlflow.rst +++ b/Doc/tutorial/controlflow.rst @@ -166,7 +166,7 @@ following loop, which searches for prime numbers:: >>> for n in range(2, 10): ... for x in range(2, n): ... if n % x == 0: - ... print(n, 'equals', x, '*', n/x) + ... print(n, 'equals', x, '*', n//x) ... break ... else: ... # loop fell through without finding a factor -- 2.40.0