MCPcopy Create free account
hub / github.com/geekcomputers/Python / user_exit_checker

Function user_exit_checker

dice_rolling_simulator.py:83–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82
83def user_exit_checker():
84 # Checking if the user would like to roll another die, or to exit the program
85 user_exit_checker_raw = input(
86 "\r\nIf you want to roll another die, type [roll]. To exit, type [exit].\r\n?>"
87 )
88 user_exit_checker = user_exit_checker_raw.lower()
89 if user_exit_checker == "roll":
90 start()
91 else:
92 bye()
93
94
95# Actually starting the program now.

Callers 3

dice6Function · 0.85
dice8Function · 0.85
dice12Function · 0.85

Calls 2

byeFunction · 0.85
startFunction · 0.70

Tested by

no test coverage detected