Within Range

Lab Python Beginner 10 points

Read three integers low, x, high on one line. Print inside if low ≤ x ≤ high, otherwise outside. Use a chained comparison.

Input

One line: low x high.

Output

inside or outside

Example

Input

1 5 10

Output

inside
Sample input available Sample output available
Editor
Python

Hints

Python allows low <= x <= high directly.

A conditional expression: A if condition else B.

Solution explanation

Chained comparisons read like maths. The one-line A if cond else B is a conditional expression.

Show solution
low, x, high = map(int, input().split())
print("inside" if low <= x <= high else "outside")
Output
Answer
HOME LEARN COMMUNITY DASHBOARD