We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents deb461e + fb0648b commit 30af8d0Copy full SHA for 30af8d0
Guess_the_number_game
@@ -10,25 +10,25 @@ def new_game():
10
print("new game")
11
12
13
-def range100():
+def range_of_100():
14
global num
15
num = random.randrange(0,100)
16
- print("range is 0-100")
+ print("your range is 0-100")
17
18
-def range1000():
+def range_of_1000():
19
20
num = random.randrange(0,1000)
21
print("range is 0-1000")
22
23
def input_guess(guess):
24
25
- print("Guess is " + guess)
26
- n1 = int(guess)
27
- if n1 == num:
+ print("Your Guess is " , guess)
+ num1 = int(guess)
+ if num1 == num:
28
print ("Correct")
29
- elif n1 >= num:
+ elif num1 >= num:
30
print ("Greater")
31
- elif n1 <= num:
+ elif num1 <= num:
32
print ("Lower")
33
34
0 commit comments