We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8fa4ad commit 8a16a7eCopy full SHA for 8a16a7e
Doc/tutorial/controlflow.rst
@@ -461,8 +461,8 @@ Defining Functions
461
We can create a function that writes the Fibonacci series to an arbitrary
462
boundary::
463
464
- >>> def fib(n): # write Fibonacci series up to n
465
- ... """Print a Fibonacci series up to n."""
+ >>> def fib(n): # write Fibonacci series less than n
+ ... """Print a Fibonacci series less than n."""
466
... a, b = 0, 1
467
... while a < n:
468
... print(a, end=' ')
0 commit comments