test_list = [1, 3, 11, 13, 19] def count_selected(l): counter = 0 for number in l: if 10 <= number < 15: counter = counter + 1 return counter print(count_selecter(test_list))