File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ TO DO
2
+ IN PROGRESS
3
+ DONE
Original file line number Diff line number Diff line change
1
+ import random
2
+ Name = "Number_Guessing_Name"
3
+ def guess_number_game ():
4
+
5
+ secret_number = random .randint (1 ,100 )
6
+
7
+ start = 1
8
+ end = 100
9
+ random_number = random .randint (start , end )
10
+ print (random_number )
11
+
12
+
13
+ start = 1
14
+ end = 100
15
+
16
+ guess = int (input ("Guess a number between 1 and 100: " ))
17
+
18
+ if guess == secret_number :
19
+ print ("Congratulations! You guessed the correct number." )
20
+
21
+ if guess < secret_number :
22
+ print ("Too low. Try again." )
23
+ else :
24
+ print ("Too high. Try again." )
25
+
26
+ categories = ("even" , "odd" )
27
+ for category in categories
28
+ print (categories )
29
+
30
+
31
+ guess_number_game ()
32
+
33
+
You can’t perform that action at this time.
0 commit comments