fi=open("arrogant.txt",'r')
fo=open("arrogant-sort.txt",'w')
reader=fi.read().replace('\n','')
d = {}
for i in reader:
    d[i]=d.get(i,0)+1
ls =list(d.items())
ls.sort(key=lambda x:x[1],reverse=True)
for j in range(10):
    fo.write("{}:{}\n".format(ls[j][0],ls[j][1]))
fo.close()

0068c2adc25528ed357087ba694bcefdb0d36910
<mask token>

<mask token>
for i in reader:
    d[i] = d.get(i, 0) + 1
<mask token>
ls.sort(key=lambda x: x[1], reverse=True)
for j in range(10):
    fo.write('{}:{}\n'.format(ls[j][0], ls[j][1]))
fo.close()

fi = open('arrogant.txt', 'r')
fo = open('arrogant-sort.txt', 'w')
reader = fi.read().replace('\n', '')
d = {}
for i in reader:
    d[i] = d.get(i, 0) + 1
ls = list(d.items())
ls.sort(key=lambda x: x[1], reverse=True)
for j in range(10):
    fo.write('{}:{}\n'.format(ls[j][0], ls[j][1]))
fo.close()

fi=open("arrogant.txt",'r')
fo=open("arrogant-sort.txt",'w')
reader=fi.read().replace('\n','')
d = {}
for i in reader:
    d[i]=d.get(i,0)+1
ls =list(d.items())
ls.sort(key=lambda x:x[1],reverse=True)
for j in range(10):
    fo.write("{}:{}\n".format(ls[j][0],ls[j][1]))
fo.close()
