Ok, I'm going through the documentation (the informal introduction to 2.0 part) and I'm a little confused about defining functions. It gives this example of the Fibonacci sequence:
>>> def fib(n): # write Fibonacci series up to n
... "Print a Fibonacci series up to n"
...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.