I have the following code:
sales_data = [[12, 17, 22], [2, 10, 3], [5, 12, 13]]
scoops_sold = 0
I originally wrote:
for location in sales_data:
print(location)
for element in location:
scoops_sold + element
print(scoops_sold)
After messing around I saw I was just missing an = after the + sign.
Why does += add the sum int. of one list to another and not just +?