結果 : patterns in python using nested for loop