結果 : pattern using nested loop in python