Skip to content

Commit 9467c40

Browse files
authored
new loving number guess game try it and SUBSCRIBE https://youtu.be/x084tfX4JnI
# share https://youtu.be/x084tfX4JnI # subscribed by armor-boop as @varunpariharr ig handel #plz watch this video https://youtu.be/x084tfX4JnI from codehouse and subscribe for further amazing videos related to coding programming
1 parent 9bccf15 commit 9467c40

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

number guess game.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# share https://youtu.be/x084tfX4JnI
2+
# subscribed by armor-boop as @varunpariharr ig handel
3+
#plz watch this video https://youtu.be/x084tfX4JnI from codehouse and subscribe for further amazing videos related to coding programming
4+
5+
import random
6+
r = random.randint(1,20)
7+
8+
while(True):
9+
inp = int(input())
10+
if(inp<r):
11+
print("oops,try a greater number")
12+
elif(inp>r):
13+
print("oops,try a smaller number")
14+
else:
15+
print("congrats you choosed write number")
16+
break;

0 commit comments

Comments
 (0)