I have following lines of code. I am a newbie to python.
def fibo(n):
a, b = 0,1
while a < n:
print a,
a,b=b,a+b
n = raw_input("Enter a no:")
fibo(int(n))
I am not able to understand following code.
a,b=b,a+b
Is it equivalent to following?
a = b
b = a+b
I tried that, but didn't get expected results. I understand that its a multiple value assignment in a single line. please correct me if I am missing anything.