title: Python- How to make an if statement between x and y?
body: <p>I've recently been breaching out to Python, as C++ is fun and all, but python seems kinda cool.  I want to make Python do something as long as the input is between a certain number range.</p>
  <pre><code>def main():
      grade = float(input(&quot;“What’s your grade?”\n:&quot;))
      if grade &gt;= 90:
          print(&quot;“You’re doing great!”&quot;)
      elif(78 &gt;= grade &lt;= 89):
          print(&quot;“You’re doing good!”&quot;)
      elif(77 &gt;= grade &gt; 65):
          print(&quot;You need some work&quot;)
      else:
          print(&quot;Contact your teacher&quot;)
  
  main()
  </code></pre>
  <p>The problem arises when I'm making the elif statement, I can't make it so Python only prints the &quot;doing great&quot; statement as long as the grade is between 65 and 89.  How would you go about doing ranges of numbers?</p>