Exercise: Check if a Number is in a Range
Check if num is within the range from x to y. Use the Less Than operator for this task. Remember, you can chain multiple expressions together.
num = 9
x = 0
y = 10
# hint: you can chain multiple operators together
is_in_range =
print(is_in_range)
Python
Setting up Python environment...
Output