Hard
Add New Students
After the students, more rows follow in the same format, ending with a second
END. Build a second DataFrame, join them with pd.concat(..., ignore_index=True), and print the new shape and the last row's index and name.Input
Two blocks of lines, each ending with 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 New CSE 3.00 10 END
Output
(6, 4) 5 New
Sample 2
Input
A CSE 3.00 100 END B EEE 2.0 20 C BBA 3.0 30 END
Output
(3, 4) 2 C
Output appears here