I need to find the frequency of elements in an unordered list
a = [1,1,1,1,2,2,2,2,3,3,4,5,5]
output->
b =
For your first question, iterate the list and use a dictionary to keep track of an elements existsence.
For your second question, just use the set operator.