Hide

Problem B
Outside Range

If you are doing this problem outside of a class, or your instructor has not given you code to use as a starting point, skip ahead to the Input/Output sections for a concise description of the input/output requirements of this problem.

CS 121 students: To solve this problem, use file hw/outsiderange/outsiderange.py from your CS 121 repository as a starting point. It will handle the input/output, and all you will need to do is modify line 3 of the program.

More specifically, assume x, y, and z are variables with doubles. Replace True with an expression that evaluates to True when the value of x falls strictly outside the range of y to z. For example, given x = 5.0, y=0.0, and z=10.0, your expression should evaluate to True.

If you are using outsiderange.py as a starting point, you can ignore the rest of the Input/Output sections below. Just submit your modified outsiderange.py once you have written your solution.

Input

The input is three floating point numbers: $x$, $y$, and $z$, each separated by a single space. The bounds of the numbers is: $-100.0 \leqslant x,y,z \leqslant 100.0$.

Output

If $y \leqslant x \leqslant z$, print False. Otherwise, print True

Sample Input 1 Sample Output 1
5.0 0.0 10.0
False
Sample Input 2 Sample Output 2
-3.0 0.0 10.0
True
Sample Input 3 Sample Output 3
12.0 0.0 10.0
True

Please log in to submit a solution to this problem

Log in