This question comes from meeting the code below and not making sense of exactly what happens: when ran in python 3 it produces an error that says the variable i is not defin