Consider an (11,12) shape array. What is the index (x,y) of the 100th element?
Here is the explaination:
You can create an 11 x 12 array using np.array(range(1, 11*12+1)),reshape it to an (11 x 12) array and then, check the position of 100. Be clear that the indexing starts from 0; hence, the 9th row will have the index 8.
Answer: (8,3)
Alternatively, you can also use np.unravel_index(100) on the created array.
Answers
Answered by
4
Answer:
vxydidigkvjvvgljpogoggcjjcj7fuffi
Step-by-step explanation:
vkgid7e8s8sykshkyos
Answered by
0
Answer:
j
w5eH5qkoeosi4emgu4ti RF RF JMS 673ueiemtdl26t RV. by v.gh
Similar questions