結果 : how to write nested loops in python