MCPcopy Index your code
hub / github.com/geekcomputers/Python / try_again

Function try_again

magic8ball.py:48–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46
47
48def try_again():
49 response = inquirer.list_input(
50 message="Do you want to ask more questions?",
51 choices=["Yes", "No"],
52 ).execute()
53
54 if response.lower() == "yes":
55 magic_8_ball()
56 else:
57 exit()
58
59
60if __name__ == "__main__":

Callers 1

magic_8_ballFunction · 0.70

Calls 2

exitFunction · 0.85
magic_8_ballFunction · 0.70

Tested by

no test coverage detected