I'm close, but its not working?

Im struggling to finish this code:

sales_data = [[12, 17, 22], [2, 10, 3], [5, 12, 13]]
scoops_sold = 0

for location in sales_data:
  for element in location:
    element += scoops_sold

Im not sure how to make sure that each element gets added to the zero value variable. I dont know what Im doing wrong. Can someone show me and tell me what is going on here in this code?Preformatted text

Try switching those two variables around and see what happens.

1 Like

wow what a simple fix. Thank you so much!

1 Like