· Write a program in python to with the help of Numpy module to create a structured array from given student name, height, class and their data types. Now sort by class, then height if classes are...


·         Write a program in python to with the help of Numpy module to create a structured array from given student name, height, class and their data types. Now sort by class, then height if classes are equal.
Expected Output:
Original array:
[(b'James', 5, 48.5 ) (b'Nail', 6, 52.5 ) (b'Paul', 5, 42.1 ) (b'Pit', 5, 40.11)]


Sort by age, then height if class are equal:
[(b'Pit', 5, 40.11) (b'Paul', 5, 42.1 ) (b'James', 5, 48.5 ) (b'Nail', 6, 52.5 )]



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here