結果 : pattern using nested for loop in python