Skip to main content

Guess the number Game in Python

 



print("\t****** Welcome to the GAME *****")
print("\t** You Have to Guess the Number **")
print("\t** Type Any Nomber (1 to 10) **")
a = 5

def game(args):
    c = int(input())
    if c==10:
        print("You have type small no to ",c)
    elif c==8:
        print("You have to type more small no to ",c)
    elif c==6:
        print("You have so close to the no! Type no more no to close of ",c)
    elif c==5:
        print("Wooo! You won the game")
    else:
        print("Try again")



Comments