Kaydet (Commit) 1af6fb52 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix indentation that caused logic bug

üst 290d3d99
......@@ -138,9 +138,9 @@ following loop, which searches for prime numbers::
... if n % x == 0:
... print n, 'equals', x, '*', n/x
... break
... else:
... # loop fell through without finding a factor
... print n, 'is a prime number'
... else:
... # loop fell through without finding a factor
... print n, 'is a prime number'
...
2 is a prime number
3 is a prime number
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment