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.
1 parent 2011141 commit 704e8d9Copy full SHA for 704e8d9
Avarage Question/random_generate.py
@@ -0,0 +1,4 @@
1
+import random
2
+
3
+rand= random.randint(1,100)
4
+print("Random Number=",rand)
game/guess_number.py
@@ -0,0 +1,16 @@
+time=1
+print("You have 3 Times")
5
+rand=random.randint(1,100)
6
+while time<=3:
7
+ a=int(input("Enter Number 1 to 100="))
8
+ if a==rand:
9
+ print("You Win")
10
+ break
11
+ elif a<rand:
12
+ print("Try to Small number")
13
+ else:
14
+ print("Try to Biggest Number")
15
+ time+=1
16
0 commit comments