結果 : how to use a nested loop in python