Skip to content
Code ReadingHow Many in Range?
Break the Code

How Many in Range?

Write a list for which this function gives the wrong answer.
1def count_between(values):
2 count = 0
3 for v in values:
4 if 10 < v <= 20:
5 count += 1
6 return count