Given a list [1, 2, 3, 1, 2, 3, 4, 5, 5, 8, 1]. Write code in python to convert this list to a dictionary where the elements of the dictionary should be stored with their frequencies. code example
Example: freq count in python
freq = {}
for item in my_list:
if (item in freq):
freq[item] += 1
else:
freq[item] = 1