title: How do i make it so that when the user enters a number to check if it's odd or even and then the code asks the user to input 1 or 2 again
body: <pre><code>print ("[1] Identify, [2] quit")
  user = int(input())
  while (user) == 1:
      num = int(input("Enter a number: "))
      if (num % 2) == 0:
          print("{0} is Even".format(num))
      else:
           print("{0} is Odd".format(num))    
  if (user) == 2:
      quit()
  </code></pre>
  
  <p>The code is firstly asking the user to input 1 or 2, the code will then ask the user to input a number and then the code will say if the number is odd or even but I'm trying to make it so that after the user has input the number to check if it's odd or even, it then asks to enter 1 or 2 again.</p>