title: Write a Python program to guess a number between 1 to 9
body: <p>Write a Python program to guess a number between 1 to 9
  <strong>Note : User is prompted to enter a guess. If the user guesses wrong then the prompt appears again until the guess is correct, on successful guess, user will get a "Well guessed!" message, and the program will exit.</strong></p>
  
  <p>The above statement is given.. i have written code but it hangs after giving input.. after ctr+c it shows last call on if statement.</p>
  
  <pre><code>from random import randint as rt
  g= rt(1,9)
  ug= int(input("Guess a number"))
  while True:
      if g==ug:
          print("Well guessed!")
          break
      else:
          continue
  </code></pre>