]> granicus.if.org Git - python/commitdiff
Adjust some horizontal indentation to be consistent with the style used
authorFred Drake <fdrake@acm.org>
Sat, 16 Aug 2003 06:30:47 +0000 (06:30 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 16 Aug 2003 06:30:47 +0000 (06:30 +0000)
throughout the documentation.

Doc/tut/tut.tex

index 949f703bea3a48bb8608dba268de2bd5992ff7ce..947bfe5fbdf112e27889b4c1ecb7a53a44e645e0 100644 (file)
@@ -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