def count_range_in_list(li, min, max): ctr = for x in li: if min <= x <= max: ctr += return ctr list1 = [,,,,,,,,] print(count_range_in_list(list1, , )) list2 = ['a','b','c','d','e','f'] print(count_range_in_list(list2, 'a', 'e'))