I'm trying to figure out how to use upper and lower limits from statistics in my code. I wasn't able to find a function in the statistics module that would help me do this. I want to input a number and check to see whether it will fall within the range of 6.5 to 7.6. I wanted to be able to check this input from (6.5, 6.6, 6.7......7.6) and this code doesn't seem to be working. Any help would be appreciated. Thanks
import numpy as np
interval = float(input("Enter any number: "))
if interval is np.arange(6.5, 7.6, .1):
print("In Range")
else:
print("Number out of range")