I'm trying to understand what is happening in this block of code
def enum(seq):
n = 0
for i in seq:
yield n, i
n += 1
def fibonacci():
i = j = 1
while True:
r, i, j = i, j, i + j
yield r
I have a general understanding of how generators work, I'm just confuse about the line:
r, i, j = i, j, i +j
and what is happening on it. Thanks.