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.
fib
1 parent ce740d4 commit 283ea5fCopy full SHA for 283ea5f
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