Kaydet (Commit) b03c1d98 authored tarafından Georg Brandl's avatar Georg Brandl

Don't output floats in prime example.

üst de429628
......@@ -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
......
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