Ok, I see the mistake I made.
I didn't realize that you put all the variables you wanted to sign, and then each of there assignments. You certainly don't do a,b = 1,2 in C++ ;)
Thanks for clearing that up :)
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.