I am trying to find if a number falls in a range, and one or both of the numbers of the range can be floats.
I.E.
if x in range(0.5, 3.5):
pass
I understand range only accepts integers
So, how do I find a range between one or both floats in python. I searched around and found frange() and numpy.linspace(). Yet the former it seems is for incrementing with a float and linspace just creates a list of numbers between a range equally. All of the solutions either want floor division by 10 or have to do with incrementing.
I looked here range() for floats already and not my question.
Thanks.