Posts

Showing posts with the label Guess Number Game

Guessing the Number Game

Image
#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.