Passage: As of the census of 2010, there were 10,355 people, 4,280 households, and 2,625 families residing in the city. The population density was . There were 4,927 housing units at an average density of . The racial makeup of the city was 95.6% White (U.S. Census), 0.5% African American (U.S. Census), 0.6% Native American (U.S. Census), 1.0% Asian (U.S. Census), 0.4% from Race (U.S. Census), and 1.8% from two or more races. Hispanic (U.S. Census) or Latino (U.S. Census) of any race were 1.8% of the population. Question: Which groups are between 1000 and 4300 in size?
d = {'households': 4280, 'families': 2625}

least = 1000
most = 4300

l = []
  
for i in d:

  if d[i] > least and d[i] < most:

    l.append(i)

print(l)