Guess number Exercise.3 #2

x=1
print("Hello this is a no. game .You need to guess a no. If you guess right, you won")
while (x<=6):
inpot=int(input("Enter your number:\n"))
if inpot<30:
print("Please enter greater number\n")
elif inpot>30:
print("Please enter a smaller number\n")
else:
print("You won\n")
print("You complete it in",x)
break
print("You complete it in",6-x)
x = x + 1
if (x>6):
print("Oh shit,here we go again")

Comments

Popular posts from this blog

IO BASIC

Y.T Videos downloader [Python]

Convert PDF To Audiobook [Without Python]