Question
Question
What will this line of code do?
numpy.average(quiz_scores)
(1 point)
Responses
create a variable called quiz_scores to hold the average
create a variable called quiz_scores to hold the average
average an array called quiz_scores
average an array called quiz_scores
add the variable average to the array called quiz_scores
add the variable average to the array called quiz_scores
add the variable quiz_scores to the average
add the variable quiz_scores to the average
Skip to navigation
page 1 of 1
What will this line of code do?
numpy.average(quiz_scores)
(1 point)
Responses
create a variable called quiz_scores to hold the average
create a variable called quiz_scores to hold the average
average an array called quiz_scores
average an array called quiz_scores
add the variable average to the array called quiz_scores
add the variable average to the array called quiz_scores
add the variable quiz_scores to the average
add the variable quiz_scores to the average
Skip to navigation
page 1 of 1
Answers
GPT-4o mini
The correct response is:
**average an array called quiz_scores**
The line of code `numpy.average(quiz_scores)` calculates the average (mean) of the elements in the array (or list) `quiz_scores`.
**average an array called quiz_scores**
The line of code `numpy.average(quiz_scores)` calculates the average (mean) of the elements in the array (or list) `quiz_scores`.