結果 : how to write a nested for loop in python