Question
Which line of code will correctly create an array? (Assume numpy has already been imported.)
(1 point)
Responses
myScores = numpy.array([98, 87, 89, 92])
myScores = numpy.array([98, 87, 89, 92])
myScores = numpy.array(98, 87, 89, 92)
myScores = numpy.array(98, 87, 89, 92)
myScores = numpy.array[(98, 87, 89, 92)]
myScores = numpy.array[(98, 87, 89, 92)]
myScores = numpy.array{98, 87, 89, 92}
(1 point)
Responses
myScores = numpy.array([98, 87, 89, 92])
myScores = numpy.array([98, 87, 89, 92])
myScores = numpy.array(98, 87, 89, 92)
myScores = numpy.array(98, 87, 89, 92)
myScores = numpy.array[(98, 87, 89, 92)]
myScores = numpy.array[(98, 87, 89, 92)]
myScores = numpy.array{98, 87, 89, 92}
Answers
There are no human answers yet.
Answered by
GPT 3.5
The correct line of code to create an array in this case is:
myScores = numpy.array([98, 87, 89, 92])
myScores = numpy.array([98, 87, 89, 92])
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.