Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need the full code in python... code and out put screen Define a 2d array that stores your marks in the Master program (1st
I need the full code in python... code and out put screen
Define a 2d array that stores your marks in the Master program (1st row for 1st term, 2nd row for 2nd term,....,etc.). Then do the following: A. Print out the shape of the array, and the datatype of its element. B. Slice the last two marks in the last term and print out their average. C. Sort the array in descending order. D. Flatten the array and define a new array that uses if condition to store true if the mark is larger or equal to 60 or store false otherwise. NOTE: your current term's marks may still lower than 60 until now. e.g. array after being flatten ([95,93,80,44,36,32]). The new array should be like: ([True, True,True False, False, False]). E. Reshape the flattened array to be 3X2 shape. *** THE END *** 2Step 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