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 answer

The correct line of code to create an array in this case is:

myScores = numpy.array([98, 87, 89, 92])
Similar Questions
  1. QuestionWhich line of code will correctly create an array? (Assume numpy has already been imported.) (1 point) Responses
    1. answers icon 1 answer
  2. 9.10: Reverse ArrayWrite a function that accepts an int array and the array’s size as arguments. The function should create a
    1. answers icon 3 answers
    1. answers icon 3 answers
  3. Let X_1, \ldots , X_ n \stackrel{iid}{\sim } \mathsf{Ber}(p). We want to test\begin{array}{rl} H_0: & p\le .5 \\ H_1: & p> .5\\
    1. answers icon 13 answers
more similar questions