結果 : code for triangle pattern in python