結果 : how to check pattern in python