I am trying to append an iterator to a list but my code below evaluates for every case.
for i in range(0,10):
You need to create three lists, one for each possible outcome:
less_than_7, is_7, greater_than_7 = , ,  for i in range(0, 10): if i < 7: less_than_7.append(i) elif i > 7: greater_than_7.append(i) else: is_7.append(i)
Less7=Head7=Over7= creates one list that is referenced by the three names so your output would be identical as you are appending to the same list, well you are in the first and last case,
Head7 equal to