Predict the output for ones_like([12, 13, 14, 15)) ?
Select one:
a. array([1.0, 1.0, 1.0, 1.0])
O b. array([12, 13, 14, 15])
C. array[12, 13, 14, 15)
O d. array([1, 1, 1, 1])
Answers
Answered by
8
Answer:
b is the answer to me
ok array
Answered by
0
Option (B)
The output for ones_like
Array:
- A collection of related data elements stored in contiguous memory regions is known as an array.
- It's the most basic data structure, with each data element accessible just by its index number.
- If we want to keep a student's grades from five different classes, we don't need to construct distinct variables for each topic. Rather, we can store the data in contiguous memory areas by using an array.
- The marks scored by a student in five distinct topics are defined by the array marks[5,] where each subject's scores are located at a separate point in the array, for example, markings[0] signifies the first subject's marks, marks[1] denotes the second subject's marks, and so on.
Similar questions