結果 : how to build a two level nested loop in python