Hi all,

I am on exercise 13.3 filtering for the intervals on the ’ Python for Data Science: Fundamentals’ on the Dictionary and Frequency Tables section

I’m having a hard time wrapping my head around the logical operators for grouping the frequencies…

The example in the exercise to count the frequency of the group 10,000 - 10,0000 is;

```
elif 10000 < user_ratings <= 100000:
user_ratings_freq['10000 - 100000'] += 1
```

I’m struggling to wrap my head around the logic here, if I wanted to count all the values between 10,000 and 10,0000 would it not be something like elif 10000 >= user_ratings <= 100000?

The way i interpret the example is as if its looking for values less than 10,000 and less than or equal to 10,0000.

I know im interpreting it wrong but i dont see how that makes sense to get the values at or between 10,000 and 10,0000