Question: Q2 using python code please 1. Create a null vector of size 10 but the fifth value which is 1. 2. Create a 2D array
1. Create a null vector of size 10 but the fifth value which is 1. 2. Create a 2D array of shape-(10.10) with 1 on the border and inside 3. Consider a (6,7,8) shape array, what is the index (X.y.z) of the 100th elements? 4. Given the 30, shape-3,3,3) array: arr np.array(1.2). 13. 4. 5) 16.1.011 3.10.111 [L213. 141 115. 16. 1711 TROL 19. 201 121. 22. 23). 124. 25. 26111) Write a code of indexing into the array to produce the following results array( 25.01. 111. 14. 171 120.23. 261) array(EL 3. 4. 5) 12. 13. 1411) array(12.51 array([111, 10, 91 (14. 12. 121 117. 16. 1511)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
