Exercise: "Calculate the average of each row of data. You don’t want to include the frame numbers in the average. Make a new list of the average of each row."
I think discarding the frame numbers in the exercise might be confusing for those following along. Since it's in an exercise, I can see it being something people might miss, as they might make new data instead of overwriting the variable, or skip the first column in another way.
For example, this was my solution:
avg_list = []
for row in data:
avg_list.append(np.mean(row[1:]))
Here, I haven't discarded the frame numbers, so the following code block is different for me.
Exercise: "Calculate the average of each row of data. You don’t want to include the frame numbers in the average. Make a new list of the average of each row."
I think discarding the frame numbers in the exercise might be confusing for those following along. Since it's in an exercise, I can see it being something people might miss, as they might make new data instead of overwriting the variable, or skip the first column in another way.
For example, this was my solution:
Here, I haven't discarded the frame numbers, so the following code block is different for me.