Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Answers have been highlighted. Please explain how to get to the answers. Q.7)Suppose we have an array:- an array = np.array([[11,12,13,14], [21,22,23,24], [31,32,33,34]]) and we
Answers have been highlighted. Please explain how to get to the answers.
Q.7)Suppose we have an array:- an array = np.array([[11,12,13,14], [21,22,23,24], [31,32,33,34]]) and we did the operation :- an array[:2, 1:2). The result will be ?? a) [[12][22]] b)[[13][14]] c) _[[32][33]] d)[[22][23]] Answer a Q.8)Suppose we have an array:- an array = np.array([[11,12,13,14], [21,22,23,24], [31,32,33,34]]) and we did the operation :- an array[:1, 1:2]. The result will be ?? a) [[12]] b)[[13]] c) _[[12][22]] d)[[22][23]] Answer a Q.9:- an array = np.array([[11,12,13,14], [21,22,23,24], [31,32,33,34]]) and we did the operation :- slice = an array[:2, 1:2] slice[0,0] = 10 The value of an array, will be?? a) ([[10,12,13,14), [21,22,23,24], [31,32,33,34]]) b) ([[11,10,13,14], [21,22,23,24], [31,32,33,34]]) c) ([[11,12,13,14], [21,10,23,24], [31,32,33,34]]) d) ([[11,10,13,14], [21,22,23,24], [10,32,33,3411) Answer bStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started