From: Georg Brandl Date: Thu, 1 May 2008 18:06:50 +0000 (+0000) Subject: Don't output floats in prime example. X-Git-Tag: v3.0a5~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b03c1d98a26a265c81c17f71799449f801ecd1d1;p=thirdparty%2FPython%2Fcpython.git Don't output floats in prime example. --- diff --git a/Doc/tutorial/controlflow.rst b/Doc/tutorial/controlflow.rst index 4404ab239ad5..dee6e7c32687 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