I have 2 lists:

```
main_voltages = [5.5, 15.7, 28.5]
limit_list = [[5,10], [15,20], [25,30]]

```

I have to perform a check to see if 5.5 is in range of 5 to 10, if 15.7 is in range of 15 to 20 and 28.5 is in range of 25 to 30.
How should I make it happen without hardcoding anything? I ponder a lot over some functions but couldn't get the exact way to do it.