MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / ask_question

Function ask_question

Math_Game/math_game.py:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 return answer
31
32def ask_question():
33 answer = random_problem()
34 try:
35 guess = float(input('Enter you answer: '))
36 except ValueError:
37 guess = errorHandle(answer)
38 return guess == answer
39
40def game():
41 score = 0

Callers 1

gameFunction · 0.85

Calls 2

random_problemFunction · 0.85
errorHandleFunction · 0.85

Tested by

no test coverage detected