title: get raw input that is between a set of numbers with some checks
body: <p>I am trying to get the user input 2 numbers which are split into a list of 2 integers, but unfortunately I can't seem to get them to turn into integers, but I am also unsure of my checks and if it is going to terminate properly and return what I need.</p>
  
  <pre><code>def getlohiint():
      lohilist = []
      lohi = raw_input("Enter min and max number of points to use(e.g., 2 1000): ")
      lohilist = lohi.split()
      for x in lohilist:
          int(x)
      if lohilist[0]&lt;=2 and lohilist[1]&lt;=1000 and lohilist[0]&lt;lohilist[1]:
          break
      else:
          prompt = "%d is not in the range of 2 to 1000; "
          prompt1 = "must be at least 2"
          prompt2 = "must be no higher than 1000"
          if lohilist[0]&lt;2:
              print prompt + prompt1
          elif lohilist[1]&gt;1000:
              print prompt + prompt2
          else:
              print prompt + prompt1 + prompt2
          lohi
      high = lohilist[1]
      low = lohilist[0]
      return(low, high)
  </code></pre>