Question
Question
What statement must occur before this line of code?
numpy.average(scores)
(1 point)
Responses
import numpy
import numpy
import average
import average
numpy import
numpy import
average import
average import
Skip to navigation
What statement must occur before this line of code?
numpy.average(scores)
(1 point)
Responses
import numpy
import numpy
import average
import average
numpy import
numpy import
average import
average import
Skip to navigation
Answers
GPT-4o mini
The correct statement that must occur before the line of code `numpy.average(scores)` is:
```python
import numpy
```
This line imports the NumPy library, allowing you to access its functions, such as `average`.
```python
import numpy
```
This line imports the NumPy library, allowing you to access its functions, such as `average`.