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

Function try_again

Guessing_Game.py:66–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65
66def try_again():
67 print()
68 again = input("Do you want to play again? (yes/no) ")
69 if again.lower() in ["y", "yes"]:
70 welcome()
71 elif again.lower() in ["n", "no"]:
72 print("Thanks for playing the game")
73 else:
74 print("INVALID VALUE")
75 try_again()
76
77
78def welcome():

Callers 1

welcomeFunction · 0.70

Calls 1

welcomeFunction · 0.70

Tested by

no test coverage detected