Thanks to visit codestin.com Credit goes to github.com
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 39859fc commit 3431828Copy full SHA for 3431828
1 file changed
Doc/tutorial/modules.rst
@@ -27,14 +27,16 @@ called :file:`fibo.py` in the current directory with the following contents::
27
28
# Fibonacci numbers module
29
30
- def fib(n): # write Fibonacci series up to n
+ def fib(n):
31
+ """Write Fibonacci series up to n."""
32
a, b = 0, 1
33
while a < n:
34
print(a, end=' ')
35
a, b = b, a+b
36
print()
37
- def fib2(n): # return Fibonacci series up to n
38
+ def fib2(n):
39
+ """Return Fibonacci series up to n."""
40
result = []
41
42
0 commit comments