結果 : how to write nested for loop in python