Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in python languge program Define a 2d array that stores your marks in the Master program (1st row for 1st term, 2nd row for 2nd

image text in transcribed

in python languge program 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

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

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

1. Discuss the four components of language.

Answered: 1 week ago

Question

f. What stereotypes were reinforced in the commercials?

Answered: 1 week ago