My first day in Python and get confused with a very short example. Hope anyone can provide some explanation about why there is some difference between these several versions. Please!
V1: the output is 1, 1, 2, 3, 5, 8
a, b = 0, 1
while b < 10:
print(b)
a, b = b, a+b
V2: the output is 1, 2, 4, 8
a, b = 0, 1
while b < 10:
print(b)
a = b
b = a+b