()
| 38 | return guess == answer |
| 39 | |
| 40 | def game(): |
| 41 | score = 0 |
| 42 | while True: |
| 43 | if ask_question() == True: |
| 44 | score += 1 |
| 45 | print('Correct !') |
| 46 | else: |
| 47 | print('Incorrect') |
| 48 | break |
| 49 | print(f'======== Game Over ========\nYou score is {score}\nKeep going!') |
| 50 | |
| 51 | game() |
no test coverage detected