counts = {}
names = ['파이썬','파이썬','파이썬','파이썬','파이썬','파이썬','C언어','C언어','C언어','C언어','코딩','코딩','코딩','코딩','코딩','C++','C++','C++','HTML','HTML']

for name in names:
    if name in counts:
        counts[name] = counts[name] + 1
    else:
        counts[name] = 1
        

sorted = sorted(counts.items(), key=lambda x: x[1], reverse=True)


top1 = sorted[0:1]
top2 = sorted[1:2]
top3 = sorted[2:3]


print(f"1.{top1[0]} \n2.{top2[0]} \n3.{top3[0]}")

Embed on website

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