Question: Write a function to create a 2 D array of arbitrary shape. This array should have all zero values, except for the elements around the
Write a function to create a D array of arbitrary shape. This array should have all zero values, except for the elements around the border ie the first and last rows, and the first and last columns which should have a value of one.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
