Mar-26-2023, 03:23 PM
In the following function,
first, last = last, first + last
What it does ?
How first, last gets the values after each iteration ?
def fibonaci():
first = 0
last = 1
while True:
first, last = last, first + last
yield firstI am having difficulty understanding the first statement inside the while loop:first, last = last, first + last
What it does ?
How first, last gets the values after each iteration ?
