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

Fix the example output of count().

üst ee31e31d
...@@ -246,7 +246,7 @@ loops that truncate the stream. ...@@ -246,7 +246,7 @@ loops that truncate the stream.
def count(start=0, step=1): def count(start=0, step=1):
# count(10) --> 10 11 12 13 14 ... # count(10) --> 10 11 12 13 14 ...
# count(2.5, 0.5) -> 3.5 3.0 4.5 ... # count(2.5, 0.5) -> 2.5 3.0 3.5 ...
n = start n = start
while True: while True:
yield n yield n
......
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