All problems
EasyPython Basics
Comparison chain
Check whether a value is in the range 10 to 100 (inclusive) using a single chained comparison.
- #comparisons
Sample input
x = 47
Sample output
True
comparison-ops.py
Output
Press "Run code" to execute.
Loading…
Check whether a value is in the range 10 to 100 (inclusive) using a single chained comparison.
x = 47
True
Press "Run code" to execute.