title: Finding whether all points are in a rectangle
body: <p>I have two corner points that define a rectangle. I need to return true if all the points are located inside or on the perimeter of the rectangle. I have written code that can tell the difference between when all points are inside or outside, but I cannot figure out how to make it return True when the numbers are inside the rectangle.</p>
  <p>This code returns false situations correctly with 'False', but returns 'None' instead of 'True' for true situations.</p>
  <p>fc=first corner
  sc=second corner</p>
  <pre><code>def Functn1(fc=(0,0), sc=(0,0), p=[]):
  
      x = fc[0]     
      y = fc[1]     
      w = sc[0] 
      h = sc[1] 
  
      for i in range(len(p)):
  
          p_x = p[i][0] #Current point x
          p_y = p[i][1] #Current point y
  
          if not (p_x &gt;= x and p_x &lt;= w and p_y &gt;= y and p_y &lt;= h):
              return False
  
  print(Functn1((0,0), (5,5), [(1,1), (0,0), (5,5)]))
  </code></pre>