結果 : code for number pattern in python