Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

>>> concentrate(co, 3) array ([[ 0, 0, 0] , [ 0, 46, 0] , [O, 0, 0]]) >>>CO array ([[ O, 0, 0], [ 0,

image text in transcribed
>>> concentrate(co, 3) array ([[ 0, 0, 0] , [ 0, 46, 0] , [O, 0, 0]]) >>>CO array ([[ O, 0, 0], [ 0, 46, 0] , [ O, 0, 0] ]) >>> c1 array( [ [1, 2, 0, 1, 0, 2, 0, 1, 1], [0, 1, 1, 1, 0, 2, 2, 2, 1], [0, 2, 2, 0, 2, 2, 2, 0, 1], [1, 0, 0, 2, 1, 2, 2, 2, 2], [1, 1, 2, 1, 1, 2, 1, 0, 2 ], [2, 1, 0, 2, 0, 0, 0, 0, 1]]) >>> concentrate(c1, 3) array ([[ O, 0 , O , O, O , O , 0] , O, 9, 0, 10, O, 0, 10, 0] , [ O, 0, 0, O , 0] , [ O, O, 0, 9, 0] , 8, 0, 11, O, 0, 10, 0] , 0, O, 0, 9 , 0, O, 0]]) >>>C2 array( [ [2, 1, 2, 2, 1, 1, 2, 1, 1, 0 ], [2, 2, 1, 2, 0, 0, 0, 1, 0, 1], [2, 2, 2, 1, 0, 2, 2, 0, 2, 1], [2, 1, 2, 0, 1, 2, 0, 1, 2, 1], [0, 0, 2, 2, 2, 1, 1, 0, 2, 0] ]) >>> concentrate(c2,5) array([[ 0, O, 9 , 0 , O, 0, 0 , 0, 0] , [ O, O, O , 0, O, O, 0 , 0] , O, 0, 34, 0 , 0, O, 0, 24, 0, 0] , [ O, O, 0, 0 , 0, 0, O, O , 0 , 0] , [O, O, 0, 0 , 0 , O , 0 , O, 0 , 0]])

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions