Untitled
unknown
python
4 years ago
170 B
9
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...
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])