(file_content: str)
| 30 | |
| 31 | |
| 32 | def get_answered_questions(file_content: str) -> List[str]: |
| 33 | details = DETAILS_PATTERN.findall(file_content) |
| 34 | answered = [] |
| 35 | for detail in details: |
| 36 | summary_match = SUMMARY_PATTERN.search(detail) |
| 37 | b_match = B_PATTERN.search(detail) |
| 38 | if ( |
| 39 | summary_match |
| 40 | and b_match |
| 41 | and summary_match.group(1).strip() |
| 42 | and b_match.group(1).strip() |
| 43 | ): |
| 44 | answered.append(summary_match.group(1)) |
| 45 | return answered |
| 46 | |
| 47 | |
| 48 | def get_answers_count() -> List[int]: |
no outgoing calls