understanding a for loop

0
PY
py
OUTPUT