(text)
| 161 | |
| 162 | |
| 163 | def extract_answer(text): |
| 164 | start_index = text.find("{") |
| 165 | end_index = text.find("}") |
| 166 | if start_index != -1 and end_index != -1: |
| 167 | return text[start_index+1:end_index].strip() |
| 168 | else: |
| 169 | return "" |
| 170 | |
| 171 | |
| 172 | def if_true(prompt): |