Skip to content

Commit 6d67aa4

Browse files
committed
Create 5th.py
1 parent 4e359ca commit 6d67aa4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

5th.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import random
2+
n = random.randint(1,50)
3+
4+
while(True):
5+
inp = int(input())
6+
if(inp<n):
7+
print("Wrong guess, try a greator number")
8+
elif(inp>n):
9+
print("wrong guess, try a smaller number")
10+
else:
11+
print("Congratulations, You have guess the number")
12+
break;

0 commit comments

Comments
 (0)