Question: 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 *** 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
