File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Pass statement use for blink result
2
+
3
+ age = input ("enter your age : " )
4
+ age = int (age )
5
+ if age >= 14 :
6
+ pass
Original file line number Diff line number Diff line change
1
+ # Exercise, NUMBER Guessing Game
2
+ # Make a variable, like winning_number and assign any NUMBER to it.
3
+ # Ask user to guess a NUMBER
4
+ # if user guessed correctly then print "You Win !!!"
5
+ # if user didn't guessed lower then actual number then print "too low"
6
+ # if user didn't guessed high then actual number then print "too high"
7
+
8
+ # google "how to generate random number in python " to generate random
9
+ # winning_number
10
+
11
+ number = 25
12
+ guess = int (input ("Guess a Number 1 to 50 : " ))
13
+
14
+ if number > guess :
15
+ print ("too low" )
16
+ elif number < guess :
17
+ print ("too high" )
18
+ else :
19
+ print ("YOU WIN !!!!!" )
You can’t perform that action at this time.
0 commit comments