I want to calculate the Fibonacci series in Python 3.5 If I do:
a = 0
b = 1
while b < 100:
print(b)
a, b = b, a + b
I get the right result, but if I do:
a = 0
b = 1
while b < 100:
print(b)
a = b
b = a + b
It simply does not work. Why is this?
a's value after you dida = b? What do you think is the impact inb = a + b?