Untitled
Anonymous
python
04/15/2022 1:09 PM
228 B
17
Indexable
ary=input().split( )
dicts={}
for i in ary:
if(dicts.get(i.lower())):
dicts[i.lower()]+=1
else:
dicts[i.lower()]=1
for i in sorted(dicts):
print(i,dicts[i])Editor is loading...