Guess the number game in python

 print("Wellcome to number gusser game\n".title())

print("Lets Guss the number.\n")
print("You have 5 chances to Guss the true number.\n")
print("The number is between 20 to 80.\n")
= 5
= 50
while i > 0:
    u = int(input("Enter a number: "))
    if u == q:
        print("Hurrah You chosse the write Answer.....".title())
        break
    if u > 50:
        print("Hint: Enter a Smaller number then",u)
    elif u <  50:
        print("Hint: Enter a Bigger number then",u)
    
    print("Wronge You have",i-1,"chances left")
    if i-1 == 0:
        print("Game over")
    i=i-1

Comments