What piece of code am I missing here, I can't figure it out.
Taking in a list of numbers, my function has to create a list of sets, for the unique number and occurrence.
With my currenct piece of code I get:
[(11.0, 0), (12.0, 0), (13.0, 0), (14.0, 0), (15.0, 0)]
with a random generated list for these numbers.
What do I need to create to put in the second part of each tuple(occurrence)?
for item in mySet: