結果 : python code for nested loop