So my question is about the line "a, b=b, a+b
" as well as the line "a,b = 0,1
"
What do these lines mean, what are they doing?
def fib2(n):
result = []
a, b = 0, 1
while a < n:
result.append(a)
a, b = b, a+b
return result