check the range of values in python code example
Example 1: python check if number is in range
if 10000 <= number <= 30000:
pass
Example 2: find the range in python
def find_range(n):
lowest = min(n)
highest = max(n)
# Find the range
r = highest - lowest
return lowest, highest, r
# src : Doing Math With Python