Skip to content

Commit 4efdd87

Browse files
authored
Fix code prompt in Fibonacci example (#2665)
1 parent 1da2a8a commit 4efdd87

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

codesamples/factories.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,12 @@ def initial_data():
122122
<code>
123123
<span class=\"comment\"># Write Fibonacci series up to n</span>
124124
>>> def fib(n):
125-
>>> a, b = 0, 1
126-
>>> while a &lt; n:
127-
>>> print(a, end=' ')
128-
>>> a, b = b, a+b
129-
>>> print()
125+
... a, b = 0, 1
126+
... while a &lt; n:
127+
... print(a, end=' ')
128+
... a, b = b, a+b
129+
... print()
130+
...
130131
>>> fib(1000)
131132
<span class=\"output\">0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610</span>
132133
</code>

0 commit comments

Comments
 (0)