Create each of these scenarios using numpy arrays.
A teacher wants to know the median of each of her classes’ grades on a recent test. She creates a 5 x 7 array where each row represents a class and each column represents a set of students. Sort the columns. Then, split the array vertically and take the middle column, which is the set of medians. Print this column.
Jason and Damian are playing cards with a deck of 24. Each of the two have 12 cards, and each card is random and is from 1 to 10, inclusive. Right before they start playing, Tim also wants to join, so they reshape their deck so that it’s 8 cards for each of them. Lastly, shuffle the cards.