nums = [1,2,3,3,1,3,3,2,3,2]
counts = {}

for n in nums:
    if n in counts:
        counts[n] += 1
    else:
        counts[n] = 1

print(counts)

max_num = max(counts, key=counts.get)
max_count = counts[max_num]
print(max_num,":",max_count)

min_num = min(counts, key=counts.get)
min_count = counts[min_num]
print(min_num,":",min_count)

nanu = max_count / min_count
print(nanu)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: