title: Check whether a number lies between two other numbers
body: <p>For some reason my code won't return False EVER and I cant figure it out?</p>
  
  <p>I think the issue is with how my <code>between</code> function is written but it makes sense to me. Also I am struggling to get my restart function to work. If somebody could help me with those 2 areas I would be extremely grateful.</p>
  
  <pre><code>def between(a,b,c):
     if a&gt;b and b&lt;c:
        Rnum =True
     else:
        Rnum=False
  
  def main(): #main function need in all programs for automated testing
      print ("This program will ask the user for 3 numbers and determine if 
      the second number lies betweenthe first and the third")
      print()
  
      while True:
         numone=input('Please enter the first number - the low number:')
         if numone.isdigit():
             numone=int(numone)
             break
         else:
             print('Invalid response. Please enter a whole number.')
  
  
      while True:
         numtwo=input('Please enter the second number - the test number:  ')
         if numtwo.isdigit():
             numtwo=int(numtwo)
             break
         else:
             print('Invalid response. Please enter a whole number.')
  
      while True:
         numthree=input('Please enter the third number - the high number:')
         if numthree.isdigit():
             numthree=int(numthree)
             break
         else:
              print('Invalid response. Please enter a whole number.')
              sprint()
  
      number =between(numone,numtwo,numthree)
      print('The statement ' +  str(numone)  + ' lies between '   +  str(numtwo)  +  ' and ' +  str(numthree) + ' is True.'"\n")
  
      #Restart question
      while True:
          restart = input('Would you like to play again (Y/N)? ')
          if restart == 'Y' or restart == 'y':
              print('Restarting!' + ('\n' * 2))
              break
          if restart == 'N' or restart == 'n':
              print('Thank you for playing.' + ('\n' *2))
              break
          else:
              print("Invalid response. Please answer with a 'Y' or 'N'")
          if restart == 'N' or restart == 'n':
              break
          else:
              continue
  
  if __name__ == '__main__' : 
      main()  #excucte main function
  </code></pre>