What I do not understand about this exercise is why the ‘list’ command, which is supposed to give you the length of the total list, gives you a number that is actually in the list.
Using my logic, this:
sum = lst[int(len(lst)/2)] + lst[int(len(lst)/2) - 1]
should return: length of the list, 6, devided by 2 = 3 + lentgh of the list, again, 6, divided by 2, = 3, then - 1 = 5
instead it takes the middle 2 numbers, is that because of
int? I thought that was just to indicate a number.