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

Function input_guess

Guess_the_number_game.py:25–34  ·  view source on GitHub ↗
(guess)

Source from the content-addressed store, hash-verified

23
24
25def input_guess(guess):
26 global num
27 print("Your Guess is ", guess)
28 num1 = int(guess)
29 if num1 == num:
30 print("Correct")
31 elif num1 >= num:
32 print("Greater")
33 elif num1 <= num:
34 print("Lower")
35
36
37frame = simplegui.create_frame("Guess The Number", 200, 200)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected