File size: 251 Bytes
a706b57
 
 
 
 
 
a60c396
 
1
2
3
4
5
6
7
8
def check_reverse(question:str)->bool:
  return question[0] in ['.','!','?'] and question[-1].isupper()

def reverse(question:str)->str:
  return question[::-1]

def check_fix_answer(answer:str)->str:
  return answer.split('FINAL ANSWER:')[-1].strip()