Medium
Remove Duplicates
Read names until END (some repeat). Put them in a DataFrame column, drop duplicates (keep first) and print the unique names and how many rows were dropped.
Input
Names, then END.
Output
Two lines.
Sample 1
Input
Mim Rafi Mim Sara Rafi END
Output
Mim Rafi Sara 2
Sample 2
Input
A END
Output
A 0
Output appears here