so i wrote a code that shows what is the most repeated value and repeat time in a list. But i cant figure out how can i show the second, third etc repeated value. Would appreciate if you help.
Here is the code:
for i in lst:
counter = 0
for k in lst:
if i == k:
counter += 1
print("most repeated value is {}, repeated by {} times".format(k, counter))