Skip to content

Commit d79b45e

Browse files
authored
Add files via upload
1 parent f80ee0b commit d79b45e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

exersise.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
main_num=19
2+
ct=0
3+
while(True):
4+
i=int(input("ENter the number: "))
5+
if(i==main_num):
6+
print("congratulation , you choose right no..")
7+
print("you have take ",ct+1," chance for guessing the value")
8+
break
9+
elif(i<main_num):
10+
print("inc your no")
11+
ct=ct+1
12+
else:
13+
print("dec your no")
14+
ct=ct+1

0 commit comments

Comments
 (0)