結果 : how do nested loops work in python