結果 : how to write nested for loops in python