title: How to write an if statement with an interval?
body: <p>I can't figure it out.<br>
   So far I have, but it isn't working, no matter what age I input it tells me I can be president.</p>
  
  <pre><code>import math 
  
  (x) = input("Please enter your name:")
  (y) = input("Please enter your age:")
  
  
  print ("Hello" + x)
  print ("Your age is" + y)
  
  if ("y")&gt; ("0") and ("y") &lt; ("18"):
      print("You are a minor.")
  
  if ("y")&gt;=("18") and ("y") &lt; ("25"):
      print("You can vote.")
  
  if ("y")&gt;= ("25") and ("y") &lt; ("35"):
      print("You can rent a car.")
  
  if ("y") &gt;= ("35"):    
      print("You can be president.")
  else:   
      print ("You have not entered a valid response. Must be a positive integer.")
  </code></pre>
  
  <p>How to get the intervals properly?</p>