Teo10

Untitled

Aug 17th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. x1 = float(input())
  2. y1 = float(input())
  3. x2 = float(input())
  4. y2 = float(input())
  5. x = float(input())
  6. y = float(input())
  7.  
  8. is_x_in = x1 <= x and x <= x2
  9. is_y_in = y1 <= y and y <= y2
  10.  
  11. is_inside = is_x_in and is_y_in
  12.  
  13. if is_inside:
  14.     print("Inside")
  15. else:
  16.     print("Outside")
Add Comment
Please, Sign In to add comment