To me, this seems like it should work but its returning  instead of 1.
new_list = 
for i in x:
first = new_list[len(new_list)/2]
second = new_list[(len(new_list)/2)-1]
avg = (first+second)/2
firstprime = new_list[(len(new_list)-1)/2]
Any help would be greatly appreciated