Solution Review: Find Values Within a Range

This lesson gives a detailed review of how to find values within a range.

We'll cover the following

Solution: Use Relational Operator

Relational operators such as < return either True or False and the solution, therefore, becomes extremely straightforward. We can simply return whatever the x < 1/3 < y statement yields.

The following python code helps solve the above problem.

Get hands-on with 1200+ tech skills courses.