Solved Please Help Me Solve This Python Question Using For

Solved Please Help Me Solve This Python Question Using For