By using numpy zeros and ones functions (except for the center number), create a matrix. Hint: use slice syntax | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

By using numpy zeros and ones functions (except for the center number), create a matrix. Hint: use slice syntax

It should be like a circle for example a circle made of onces and then inside it a circle made of zeros then inside it another circle of onces till the center made of one number that can be any number

27th May 2020, 11:49 PM
Sirofmen “‫سيدالرجال‬‎” S
Sirofmen “‫سيدالرجال‬‎” S - avatar
1 Answer
0
Please note that this is the discussion section, not a challenge section
28th May 2020, 2:31 AM
Bot
Bot - avatar