結果 : how to check method in python