結果 : syntax error and logical error in python