結果 : how to write pattern in python