Python :
s1=input() n=0 for i in range(97,97+27): n=s1.count(chr(i)) if n>0: print("{}:{}".format(chr(i),n),end=" ")
By signing up a 津桥OJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 津桥OJ universal account