Instead of just diong
middle_third = to_21[7:14] I wanted to make some code that finds the middle third for a less specific list of numbers.
This is my attempt, which does solve the solution, but it looks messy af. So what are your suggestions to make it filll less and make it more manageable?
middle_third = [x for x in to_21 if x > (len(to_21)/3) and x < \ float((len(to_21)/3))+float((len(to_21))/3)+1]