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

Function InputValidation

Guessing_Game.py:44–48  ·  view source on GitHub ↗
(GUESS, GUESS_RANGE)

Source from the content-addressed store, hash-verified

42
43
44def InputValidation(GUESS, GUESS_RANGE):
45 while not 1 <= GUESS <= GUESS_RANGE:
46 print("TRY AGAIN! Your guess is out of range!\n")
47 GUESS = int(input("What is your guess? "))
48 return GUESS
49
50
51def easy():

Callers 1

guessing_gameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected