CPSC120B
Fundamentals of Computer Science I

Post-lab 15

Logical Operators

Range Overlaps

Write a function called range_overlaps(min1, max1, min2, max2) that returns True or False depending on whether the range [min1, max1] overlaps with the range [min2, max2]. There is an overlap if there is any real number that is in the range [min1, max1] and in the range [min2, max2].