Hard
Drop and Rename
Drop the credits column, rename cgpa to GPA, and print the column names as a list and then the last row's values as a list.
Input
Lines 'name dept cgpa credits', then END.
Output
Two lines.
Sample 1
Input
Mim CSE 3.82 120 Rafi EEE 3.41 98 Sara CSE 3.95 132 Tuhin BBA 3.60 110 Nadia CSE 3.71 125 END
Output
['name', 'dept', 'GPA'] ['Nadia', 'CSE', np.float64(3.71)]
Sample 2
Input
A CSE 3.00 100 END
Output
['name', 'dept', 'GPA'] ['A', 'CSE', np.float64(3.0)]
Output appears here