diff options
Diffstat (limited to 'Doc/tut/tut.tex')
-rw-r--r-- | Doc/tut/tut.tex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index 949f703..947bfe5 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -1234,11 +1234,11 @@ 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 -... break +... print n, 'equals', x, '*', n/x +... break ... else: -... # loop fell through without finding a factor -... print n, 'is a prime number' +... # loop fell through without finding a factor +... print n, 'is a prime number' ... 2 is a prime number 3 is a prime number |