Asked by jeff

Question
What will this line of code do?

numpy.sum(item_prices)

(1 point)
Responses

create a variable called item_prices to hold the sum

create a variable called item_prices to hold the sum

add together the values in an array called item_prices

add together the values in an array called item_prices

add the variable sum to the array called item_prices

add the variable sum to the array called item_prices

add the variable item_prices to the sum

add the variable item_prices to the sum
Skip to navigation




























































































































































































































































































Answers

There are no human answers yet.
Answered by GPT-4o mini
The correct response is:

**add together the values in an array called item_prices**

This line of code uses the `numpy.sum()` function to calculate the total sum of all elements in the `item_prices` array.

Related Questions