I have a list which contain names of students. Example:
1 2 | list = ['Jones','Adams','Frank','John','Lopez','Jones','Smith','Ivan','Julian','Carlos','Adams','Frank','Jones','John','Ivan'] |
I need to count the occurence of every name in the list. what is the easiest way to do in python?
You can use Counter if you want to do multiple count of the list
Result: