Guessing the Number Game
#Guess the Number import random print ( "Welcome!!! Let's Play Guess the Number" ) r=random.randint( 1 , 6 ) for i in range ( 3 ): print ( "This is your Turn:" ,i+ 1 ) choice=int( input ( "Guess the Number: " )) if choice==r: print ( "Hurray!! You Won!" ) break else : print ( "You Lose! Try Again!" ) continue Output: If you have any doubts, feel free to post it in comment Section.