# Program to guess a Word. from random import choice as ch print("WELCOME TO GUESS THE WORD GAME!!!!!") list1 = ["manchester","maths","delhi","laxmi","school","javascript","television"] word = ch(list1) print("HINTS :-") print(f"1.It Starts With {word[0]} \n\n2.It Ends With {word[-1]}\n\n3.It consist of {len(word)} Letters.\n") if word == 'manchester' or word == 'delhi' : print("4.Its a name of Place.") elif word == 'maths': print('4.Its a name of subject.') elif word == 'laxmi': print('4.Its the name of a Godess.') elif word == 'school': print('4.place where a student studies.') elif word == 'javascript': print('4.its the name of a programming language.') elif word == 'television': print('4.Name of a device where you see different Television programes.') print('\n\nYOU HAVE ONLY 10 CHANCES TO GUESS THE WORD!!') for i in range(10,0,-1): inp1 = input('Enter Your Guess :') if inp1 == word: print(f"CONGRACTS\nYOU WON !!!!!!!!!!!!!!!!") break if i-1 == 0: print('You Lost!!!!!\nTry Again!!!!!') else: print('NOT MATCHED!!') print(f'You Have {i - 1} Chances Left!!!!!\nHurry Up!!!!!') print('HAVE A NICE DAY!!!')