Hellow guys! please I need help with this. I am stacked and can't figure out what am doing wrong

Such variable doesn’t exist.
Please use the correct one (supposedly the one you’ve defined before the for loop).

yes. I figured. Thank you.