I have no idea what's wrong. Please help! ERROR: UndefVarError: i not defined

Please see:

and

2 Likes