1def findMiddle(input_list):
2 middle = float(len(input_list))/2
3 if middle % 2 != 0:
4 return input_list[int(middle - .5)]
5 else:
6 return (input_list[int(middle)], input_list[int(middle-1)])
7
1[lis[i] for i in
2 range((len(lis)/2) - (1 if float(len(lis)) % 2 == 0 else 0), len(lis)/2+1)]
3