A two-dimensional array has been defined to hold the quantity of each of five different healthy snack products sold in a shop during the past three months.
The array is declared as follows:
sales = [ [0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0] ]
Indexing of the array starts at 0, so the sales of the first product in the second month is held in sales[1][0].
(a) Write a statement to assign the value 13 to the fifth product in the third month.
Please let us know your comments regarding the correct answer to the question. Each of your comments will be evaluated by us and correct comments will be shared.