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 f625b90 commit e803641Copy full SHA for e803641
codesamples/factories.py
@@ -122,11 +122,12 @@ def initial_data():
122
<code>
123
<span class=\"comment\"># Write Fibonacci series up to n</span>
124
>>> def fib(n):
125
- >>> a, b = 0, 1
126
- >>> while a < n:
127
- >>> print(a, end=' ')
128
- >>> a, b = b, a+b
129
- >>> print()
+ ... a, b = 0, 1
+ ... while a < n:
+ ... print(a, end=' ')
+ ... a, b = b, a+b
+ ... print()
130
+ ...
131
>>> fib(1000)
132
<span class=\"output\">0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610</span>
133
</code>
0 commit comments