Problem:
Counting Characters Write a program which counts and reports the number of each alphabetical letter. Ignore the case of characters. Input A sentence in English is given in several lines. Output Prints the number of alphabetical letters in the following format: a : The number of 'a' b : The number of 'b' c : The number of 'c' .
  .
z : The number of 'z'  Constraints  The number of characters in the sentence < 1200  Sample Input This is a pen. Sample Output a : 1
b : 0
c : 0
d : 0
e : 1
f : 0
g : 0
h : 1
i : 2
j : 0
k : 0
l : 0
m : 0
n : 1
o : 0
p : 1
q : 0
r : 0
s : 2
t : 1
u : 0
v : 0
w : 0
x : 0
y : 0
z : 0

Solution (Python):
import sys
alphabet = "abcdefghijklmnopqrstuvwxyz"

string = sys.stdin.read()

for s in alphabet:
    print(s+" : "+str(string.lower().count(s)))

Solution (Python):
alphabet=dict.fromkeys("abcdefghijklmnopqrstuvwxyz",0)
t=list(alphabet)
while True:
    try:
        N = input()
    except:
        break
    N=N.lower()
    z = list(N)
    if N=='':
        break
    for i in range(len(z)):
        for j in range(len(t)):
            if z[i]==t[j]:
                alphabet[t[j]]+=1
for key, value in alphabet.items():
    print(key, ':', value)

Solution (Python):
import sys
texts=sys.stdin.read()
texts=texts.lower()
cnt=[0]*26

letters=list('abcdefghijklmnopqrstuvwxyz')
for x in texts:
    i=0
    for y in letters:
        if x==y:
            cnt[i]+=1
        i+=1
for i in range(26):
    print(letters[i]+" : "+str(cnt[i]))

Solution (Python):



import sys


def main():
    A = "abcdefghijklmnopqrstuvwxyz"
    r = [0 for _ in range(26)]
    S = sys.stdin.read()

    for i in range(len(S)):
        for j in range(len(A)):
            if S[i].lower() == A[j]:
                r[j] += 1
                break
    for i in range(26):
        print(f"{A[i]} : {r[i]}")


if __name__ == '__main__':
    main()

Solution (Python):
import sys
line = sys.stdin.read().lower()
al_dict = {}

for al in [chr(i) for i in range(ord('a'), ord('z')+1)]:
    al_dict[al] = 0
    
for al in line:
    if al_dict.get(al) != None:
        al_dict[al] += 1

for al in al_dict:
    print('{} : {}'.format(al, al_dict[al]))

Solution (Python):
import sys
x=sys.stdin.read().lower()
for i in range(97,123):
    print(chr(i),':',x.count(chr(i)))

Solution (Python):
import collections

n = []

while True:
   try:
       N = input()
   
   except EOFError:
       break
   
   N = N.lower() 
    
   N.replace('', ' ')
   
   n.extend(N)
   
c = collections.Counter(n)

for i in range(97, 97+26):
        print("%s : %d" % (chr(i),c[chr(i)]) )

Solution (Python):
import sys


table = [0]*26

letters = "abcdefghijklmnopqrstuvwxyz"
input_str = sys.stdin.read()

for A in input_str:
    ind = 0
    for B in letters:
        if A == B or A == B.upper():
            table[ind] += 1
            break
        ind += 1

for i in range(len(letters)):
    print("%s : %d"%(letters[i],table[i]))

Solution (Python):
s1 = ''
try:
    while True:
        t = input()
        if t == '':
            break
        s1 += t
except EOFError:
    pass

n = [0] * 26
s = s1.lower()
for i in range(len(s)):
    j = ord(s[i]) - 97
    if j >= 0 and j < 26:
        n[j] += 1
for i in range(26):
    print('%s : %d' %(chr(i + 97),n[i]))

Solution (Python):
import sys
s = sys.stdin.read().lower()
a = {chr(i): 0 for i in range(ord('a'), ord('z')+1)}
for i in s:
    if ord(i) in range(ord('a'), ord('z')+1):
        a[i] += 1
[print(f'{k} : {v}') for k, v in a.items()]

Solution (Python):
import re
import sys
s = re.findall('[a-z]', sys.stdin.read().lower())
letters = 'abcdefghijklmnopqrstuvwxyz'
cnt = [0]*26
for i in s:
    point = 0
    for j in letters:
        if i == j:
            cnt[point] += 1
            break
        point += 1
for i in range(26):
    print('%s : %d'%(letters[i], cnt[i]))

Solution (Python):
count_char = list(0 for i in range(26))
while True :
    try :
        str_org = str(input())
        str_org = str_org.lower()
        for i in range(len(str_org)) :
            num_org = ord(str_org[i])
            if num_org > 96 and num_org < 123 :
                count_char[num_org - 97] += 1
    except EOFError :
        break
for i in range(97, 123) :
    print(chr(i), ":", count_char[i-97])

Solution (Python):
import sys
texts=sys.stdin.read()
texts=texts.lower()
cnt=[0]*26

letters=list('abcdefghijklmnopqrstuvwxyz')
for x in texts:
    i=0
    for y in letters:
        if x==y:
            cnt[i]+=1
        i+=1
for i in range(26):
    print(letters[i]+" : "+str(cnt[i]))

Solution (Python):
import sys
N=sys.stdin.read()
K=len(N)
N=N.lower()
U=[0]*26
list="abcdefghijklmnopqrstuvwxyz"
for i in range(K):
  for u in range(26):
    if N[i]==list[u]:
      U[u]+=1
for h in range(26):
    print(f"{list[h]} : {U[h]}")

Solution (Python):
letters = {
    "a": 0,
    "b": 0,
    "c": 0,
    "d": 0,
    "e": 0,
    "f": 0,
    "g": 0,
    "h": 0,
    "i": 0,
    "j": 0,
    "k": 0,
    "l": 0,
    "m": 0,
    "n": 0,
    "o": 0,
    "p": 0,
    "q": 0,
    "r": 0,
    "s": 0,
    "t": 0,
    "u": 0,
    "v": 0,
    "w": 0,
    "x": 0,
    "y": 0,
    "z": 0,
}

while True:
    try:
        l = list(input())
        if len(l) == 0:
            break
        for c in l:
            cl = c.lower()
            if cl in letters:
                letters[cl] += 1
    except EOFError:
        break

ks = list(letters.keys())
vs = list(letters.values())

for i in range(len(ks)):
    print("%s : %s" % (ks[i], vs[i]))

Solution (Python):
tmp = "abcdefghijklmnopqrstuvwxyz"
alph = list(tmp)
alphcount = [0]*26

while True:
    try:
        letter = input()
        letterarray = list(letter.lower())
        

    except:
        break

    for x in letterarray:
        for i in range(26) :
            if (x == alph[i]):
                alphcount[i] += 1

            else :
                continue

for i in range(26):
    print(str(alph[i])+" : "+str(alphcount[i]))

Solution (Python):
import sys
buff=sys.stdin.read()
buff=buff.lower()
alp="abcdefghijklmnopqrstuvwxyz"
for i in range(len(alp)):
  print(alp[i],':',buff.count(alp[i]))

Solution (Python):
al = 'abcdefghijklmnopqrstuvwxyz'
text = ''

while True:
    try:
        text += input().lower()
    except EOFError:
        break

for i in al:
    print('{} : {}'.format(i, text.count(i)))

Solution (Python):
word = []
counter = [0]*26
alphabed = list('abcdefghijklmnopqrstuvwxyz')
try:
  while True:
    input_word = list(input().lower())
    if word == '':
      break
    for i in range(len(input_word)):
      word.append(input_word[i])
except EOFError:
  pass
for i in range(len(word)):
  for j in range(26):
    if word[i] == alphabed[j]:
      counter[j] += 1
for i in range(26):
  print('%s : %d'%(alphabed[i], counter[i]))

Solution (Python):
alp = 'abcdefghijklmnopqrstuvwxyz'
text = ''
while True:
    try:
        text += input().lower()
    except:
        break

for chr in alp:
    print(chr + ' : ' + str(text.count(chr)))

Solution (Python):
import sys

cnt = {}

for line in sys.stdin:
  for l in line:
    if l.isalpha():
      c = l.lower()
      cnt[c] = cnt.get(c,0)+1

for i in range(26):
  c = chr(ord('a')+i)
  print( c, " : ", cnt.get(c,0), sep = '' )

Solution (Python):
import sys

BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001


table = [0]*26

letters = "abcdefghijklmnopqrstuvwxyz"
input_str = sys.stdin.read()

for A in input_str:
    index = 0
    for B in letters:
        if A == B or A == B.upper():
            table[index] += 1
            break
        index += 1

for i in range(len(letters)):
    print("%s : %d"%(letters[i],table[i]))

Solution (Python):
x_input = ''
try:
    while True:
        x = input()
        x_input = x + x_input
        if x == '':
            break
except EOFError:
    pass

for i in range(97, 123):
    x_low = x_input.lower()

    print(chr(i), ':', str(x_low.count(chr(i))))

Solution (Python):
list=[]

try:
    while True:
        list.append(input())
except EOFError:
    pass

for i in range(len(list)):
    list[i]=list[i].lower()
w=''.join(list)

for c in 'abcdefghijklmnopqrstuvwxyz':
    print(c,':',w.count(c))

Solution (Python):
import string
bb=""
while True:
    try:
        a=str(input())
        b=a.lower()
        bb=bb+b
    except EOFError:
        break
for i in string.ascii_lowercase:
            
    c=bb.count(i)
    print("{} : {}".format(i,c))

Solution (Python):
list=[]
alphabet = dict.fromkeys("\
abcdefghijklmnopqrstuvwxyz",0)

while True:
    try:
        str=input()
    except EOFError:
        break
        continue
    if str=='':
        break
    new=str.lower()
    list.append(new)

s = "".join(list)
for c in "abcdefghijklmnopqrstuvwxyz":
    countable=s.count(c)
    print(c,":",countable)

Solution (Python):
s=""
while True:
    try:
        s += input().lower()
    except:
        break
for c in 'abcdefghijklmnopqrstuvwxyz':
    print(c,':',s.count(c))

Solution (Python):

alp=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
my_dic={'a':0,'b':0,'c':0,'d':0,'e':0,'f':0,'g':0,'h':0,'i':0,'j':0,'k':0,'l':0,'m':0,'n':0
        ,'o':0,'p':0,'q':0,'r':0,'s':0,'t':0,'u':0,'v':0,'w':0,'x':0,'y':0,'z':0}
while(True):
    try:
        var=input()
    except:
        break
    for i in alp:
        s=my_dic[i]
        s+=var.lower().count(i)
        my_dic[i]=s
    
for i in alp:
    print(i+" : "+str(my_dic[i]))

Solution (Python):
A=[]
while True:
    try:
        A.append(input())
    except EOFError:
        break


a=list("abcdefghijklmnopqrstuvwxyz")
counter=[0 for i in range(len(a))]
for j in A:
    for i in range(len(a)):
        counter[i]+=j.count(a[i])+j.count(a[i].upper())
for i in range(len(a)):
    print(a[i]+" : "+str(counter[i]))

Solution (Python):
from collections import Counter
S = ''
while True:
    try:
        s = input().lower()
    except:
        break
    S += s
C = Counter(S)
A = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
     's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
for Ai in A:
    print(Ai + ' : ' + '{0}'.format(C[Ai]))

Solution (Python):
import sys
S = sys.stdin.read()
for i in range(26):
    ans = S.count(chr(i+65))+S.count(chr(i+97))
    print(f"{chr(i+97)} : {ans}")

Solution (Python):
import string
import sys

sent = sys.stdin.read()
sent = sent.lower()

results = {let: sent.count(let) for let in set(sent)}
alphas = [chr(ord('a') + i) for i in range(26)]

for a in alphas:
    if a not in results:
        print("{} : {}" .format(a, 0))
    else:
        print("{} : {}" .format(a, results[a]))

Solution (Python):



t = ""
y = [0]*26
while True:
    try:
        n = input()
        m = str(n)
        m = m.lower()
        t += m
    except:
        break
for i in range(len(t)):
    x = ord(t[i])
    if x>96 and x<123:
        y[x-97] += 1
for i in range (97,123):
    print(chr(i), ":", y[i-97])

Solution (Python):
import sys
import string

count = {k : 0 for k in string.ascii_lowercase}
for c in sys.stdin.read().lower():
    if c.islower():
        count[c] = count[c] + 1
for k, v in count.items():
    print(f"{k} : {v}")

Solution (Python):
import sys, string
 
lines = []
for line in sys.stdin:
    lines.append(line)
 
text = ''.join(lines).lower()
     
for char in string.ascii_lowercase:
    print("{} : {}".format(char, text.count(char)))

Solution (Python):
import sys
lines = sys.stdin.readlines()
x = []

for i,line in enumerate(lines):
    line = line.strip("\n")
    x.append(line)
newx = str.lower("".join(x))
num = ord("a")

for i in range(26):
    countn = newx.count(chr(num))
    print(chr(num) + " : " + str(countn))
    num += 1

Solution (Python):
import collections

n = []

while True:
   try:
       N = input()
   
   except:
       break
   
   N = N.lower() 
    
   N.replace('', ' ')
   
   N = list(N)
   
   n.extend(N)
   
c = collections.Counter(n)

for i in range(97, 97+26):
        print("%s : %d" % (chr(i),c[chr(i)]) )

Solution (Python):
import sys
x={}
for line in sys.stdin:
    for l in line:
        if l.isalpha():
            c=l.lower()
            x[c]=x.get(c,0)+1
for i in range(26):
    c=chr(ord("a")+i)
    print(f'{c} : {x.get(c,0)}')

Solution (Python):
import sys
import string

count={k: 0 for k in string.ascii_lowercase}
for c in sys.stdin.read().lower():
    if c.islower():
        count[c]=count[c]+1
for k,v in count.items():
    print(f"{k} : {v}")

Solution (Python):
alpha='abcdefghijklmnopqrstuvwxyz'
text=''

while True:
    try:
        text += input().lower()
    except EOFError:
        break
for a in alpha:
    print('{} : {}'.format(a,text.count(a)))

Solution (Python):
import sys
table = [0]*26

a = "abcdefghijklmnopqrstuvwxyz"
b = sys.stdin.read()

for i in b:
    index = 0
    for j in a:
        if i == j or j == i.lower():
            table[index] += 1
            break
        index += 1

for i in range(len(a)):
    print("%s : %d"%(a[i],table[i]))

Solution (Python):
import sys
 
cnt = {}
 
for line in sys.stdin:
  for l in line:
    if l.isalpha():
      c = l.lower()
      cnt[c] = cnt.get(c,0)+1
 
for i in range(26):
  c = chr(ord('a')+i)
  print( c, " : ", cnt.get(c,0), sep = '' )

Solution (Python):
l = [0 for i in range(26)] 
b=[chr(ord('a') + i) for i in range(26)]
while True:
    try:
        n=input()
        a= n.lower()
        for i in range(26):
            c = a.count(b[i])
            l[i]+=c
    except EOFError:
        for i in range(26):
            print(f'{b[i]} : {l[i]}')    
        break

Solution (Python):
import sys

chars = 'abcdefghijklmnopqrstuvwxyz'
counts = [0]*26

words = sys.stdin.read()


for A in words:
    index = 0
    for B in chars:
        if A.lower() == B:
            counts[index] += 1
            break
        index += 1

for i in range(len(chars)):
    print(f'{chars[i]} : {counts[i]}')

Solution (Python):



import sys
import string

text = ''
alpha = string.ascii_lowercase
while True:
    try:
        text += input().lower()
    except EOFError:
        break
for a in alpha:
    print(f"{a} : {text.count(a)}")

Solution (Python):
import collections

n = []

while True:
   try:
       N = input()
   
   except:
       break
   
   N = N.lower() 
    
   N.replace('', ' ')
   
   N = list(N)
   
   n.extend(N)
   
c = collections.Counter(n)

for i in range(97, 97+26):
        print("%s : %d" % (chr(i),c[chr(i)]) )

Solution (Python):
a = [0 for i in range(26)]
while True:
    try:
        s = str(input())
        s = s.lower()
        for i in range(len(s)):
            n = ord(s[i])
            if n > 96 and n < 123:
                a[n-97] += 1
    except:
        break
for i in range(97,123):
    print(chr(i),":",a[i-97])

Solution (Python):
k=[0]*26
while True:
    try : n=input()
    except EOFError: break
    for i in range(len(n)):
        a=ord(n[i])-ord('a')            
        if a>=0 and a<26 :
            k[a]+=1
        b=ord(n[i])-ord('A')
        if b>=0 and b<26 :                
            k[b]+=1

for i in range(26):
    print(chr(i+ord('a')),':',k[i])

Solution (Python):
import string

C=string.ascii_lowercase

L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]

try:
    while True:
        A=input()
        
        if(A):
            A=A.lower()
            for i in range(26):
                B=A.count(C[i])
                L[i]+=B
                i+=1
            
        
        
        
except EOFError:
    pass

for j in range(26):
            print(C[j],end='')
            print(' : ',end='')
            print(L[j])
            j+=1

Solution (Python):
moji=''
while True:
    try:
        moji+=str(input().lower())
    except EOFError:
        break
for i in range(97,123):
    print(chr(i),':',moji.count(chr(i)))

Solution (Python):
import string

def print_frequencies(frequency_dict):
  for letter, count in frequency_dict.items():
    print(f"{letter} : {count}")

def remove_digits(input_str):
  removed_digit_string = ""

  for a in input_str:
    if a.isdigit():
      continue
    else:
      removed_digit_string += a
  
  return removed_digit_string



letter_counts = dict.fromkeys(string.ascii_lowercase, 0)


translator = str.maketrans('', '', string.punctuation)

while True:
  try:

    
    master_string = ""
    input_text = input()
    master_string += input_text
    
    
    master_string = master_string.translate(translator)
    master_string = master_string.replace(" ", "")
    
    
    master_string = master_string.lower()

    
    master_string = remove_digits(master_string)

    
    for letter in master_string:
      letter_counts[letter] += 1

  
  except EOFError:
    print_frequencies(letter_counts)
    break

Solution (Python):

try:
    a=[]
    while True:
        t=input()
        t=t.lower()
        for j in range(len(t)):
            x=ord(t[j])
            a.append(x)
except EOFError:
    pass

count=[0]*130
for i in a:
    count[i]+=1
    
for i in range(97,123):
    print(chr(i),':',count[i])

Solution (Python):
x=[0 for i in range(26)]
a="abcdefghijklmnopqrstuvwxyz"
while True :
    try:
        b=input()
    except:
        break
    for j in b:
        y=0
        for k in a:
            if j == k or j == k.upper():
                x[y]+=1
                break
            y+=1
for i in range(len(a)):
    print("%s : %d"%(a[i],x[i]))

Solution (Python):
from collections import Counter
from string import ascii_lowercase

s=""
while 1:
    try:s+=input().lower()
    except EOFError : break

dic=Counter(s)

for x in ascii_lowercase:
    if x in dic:
        print("{} : {}".format(x,dic[x]))
    else :
        print("{} : 0".format(x))

Solution (Python):
import sys

s = ""
for line in sys.stdin:
    s += line

char = "abcdefghijklmnopqrstuvwxyz"

for c in char:
    n1 = s.count(c)
    n2 = s.count(c.upper())
    print(c + " : " + str(n1 + n2))

Solution (Python):
import sys
texts=sys.stdin.read()
texts=texts.lower()
cnt=[0]*26

letters=list('abcdefghijklmnopqrstuvwxyz')
for x in texts:
    i=0
    for y in letters:
        if x==y:
            cnt[i]+=1
        i+=1
for i in range(26):
    print(letters[i]+" : "+str(cnt[i]))

Solution (Python):
import sys
b=sys.stdin.read().lower()
for i in range(97,123):
    print(chr(i),':',(b.count(chr(i))))

Solution (Python):


l="abcdefghijklmnopqrstuvwxyz"
a=[0]*26

while True:    
    try:
        n=input()
        n=n.lower()
        for i in range(len(n)):
            if n[i] in l:
                b=l.index(n[i])
                a[b] +=1
    except:
        break
for c in range(26):
    print(l[c],':',a[c])

Solution (Python):
lst = []
while True:
 try:
  lst += input().lower()
 except: break
orda = ord('a')
ordz = ord('z')
for i in range(orda,ordz+1):
 print('{} : {}'.format(chr(i),lst.count(chr(i))))

Solution (Python):
a=[0 for code in range(26)]
b= 'abcdefghijklmnopqrstuvwxyz'
while True:
    try:
        c=input()
        for i in range(len(c)):
            if c[i] in b or c[i].lower() in b:
                a[b.index(c[i].lower())]+=1
    except:
        break
for j in range(26) :
    print(f'{b[j]} : {a[j]}')

Solution (Python):
s1=''
while True:
    try:
        s1 += input().lower()
    except:
        break
for i in ('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'):
    print(i,":",s1.count(i))

Solution (Python):
sm = ""
while True:
    try:
        sm += input().lower()
    except:
        break
 
for i in 'abcdefghijklmnopqrstuvwxyz':
    print('{} : {}'.format(i, sm.count(i)))

Solution (Python):

(a,b,c,d,e,f,g,h,i_i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z)\
    = (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
while True:
    try:
        string = list(input())
    except:
        break
    for i in string:
            if i=="a" or i=="A":
                a += 1
            elif i=="b" or i=="B":
                b += 1
            elif i=="c" or i=="C":
                c += 1
            elif i=="d" or i=="D":
                d += 1
            elif i=="e" or i=="E":
                e += 1
            elif i=="f" or i=="F":
                f += 1
            elif i=="g" or i=="G":
                g += 1
            elif i=="h" or i=="H":
                h += 1
            elif i=="i" or i=="I":
                i_i += 1
            elif i=="j" or i=="J":
                j += 1
            elif i=="k" or i=="K":
                k += 1
            elif i=="l" or i=="L":
                l += 1
            elif i=="m" or i=="M":
                m += 1
            elif i=="n" or i=="N":
                n += 1
            elif i=="o" or i=="O":
                o += 1
            elif i=="p" or i=="P":
                p += 1
            elif i=="q" or i=="Q":
                q += 1
            elif i=="r" or i=="R":
                r += 1
            elif i=="s" or i=="S":
                s += 1
            elif i=="t" or i=="T":
                t += 1
            elif i=="u" or i=="U":
                u += 1
            elif i=="v" or i=="V":
                v += 1
            elif i=="w" or i=="W":
                w += 1
            elif i=="x" or i=="X":
                x += 1
            elif i=="y" or i=="Y":
                y += 1
            elif i=="z" or i=="Z":
                z += 1

print("a : "+str(a))
print("b : "+str(b))
print("c : "+str(c))
print("d : "+str(d))
print("e : "+str(e))
print("f : "+str(f))
print("g : "+str(g))
print("h : "+str(h))
print("i : "+str(i_i))
print("j : "+str(j))
print("k : "+str(k))
print("l : "+str(l))
print("m : "+str(m))
print("n : "+str(n))
print("o : "+str(o))
print("p : "+str(p))
print("q : "+str(q))
print("r : "+str(r))
print("s : "+str(s))
print("t : "+str(t))
print("u : "+str(u))
print("v : "+str(v))
print("w : "+str(w))
print("x : "+str(x))
print("y : "+str(y))
print("z : "+str(z))

Solution (Python):
s=''
while True:
    try:
        s += input().lower()
    except EOFError:
        break
S = list(s)
for c in 'abcdefghijklmnopqrstuvwxyz':
    a=S.count(c)
    print(f'{c} : {a}')

Solution (Python):
XS = list(open(0).read())
m = {}
for i in range(26):
    m[chr(97+i)] = 0
for x in XS:
    c = x.lower()
    if c in m:
        m[c] += 1
for k, v in m.items():
    print("{} : {}".format(k, v))

Solution (Python):
import sys
b=sys.stdin.read().lower()
for i in range(97,123):
    print(chr(i),':',(b.count(chr(i))))

Solution (Python):
import sys


s = sys.stdin.read()

CH = [0 for _ in range(26)]
for i in s:
    asc = ord(i)
    if 65 <= asc <= 90:
        CH[asc - 65] += 1
    elif 97 <= ord(i) <= 122:
        CH[asc - 97] += 1
for i in range(26):
    print(f'{chr(97+i)} : {CH[i]}')

Solution (Python):
import sys
import string
li = []
for l in sys.stdin:
    for ll in list(l.lower()):
        li.append(ll)

d = dict([(x, 0) for x in string.ascii_lowercase])

for i in li:
    if i in d:
        d[i] += 1

for i in d.items():
    print(i[0], ":", i[1])

Solution (Python):
import sys

alpha = [0] * 26
buf = sys.stdin.read()
buf_len = len(buf)

for i in range(buf_len):
    c = buf[i].lower()
    ascii_code = ord(c)

    if ord('a') <= ascii_code <= ord('z'):
        alpha[ascii_code - ord('a')] += 1

for i in range(26):
    ascii_code = ord('a') + i
    print("%s : %d" % (chr(ascii_code), alpha[i]))

Solution (Python):
import sys


def resolve():
    alphabets = dict([(chr(c), 0) for c in range(ord('a'), ord('z') + 1)])

    for line in sys.stdin:
        for c in list(line):
            if c.isalpha():
                alphabets[c.lower()] += 1

    for k, v in alphabets.items():
        print("{} : {}".format(k, v))


resolve()

Solution (Python):
alph = "abcdefghijklmnopqrstuvwxyz"
ans = [0] * 26
while True:
    s = input()
    t = s[-3:] if len(s) >= 3 else s

    for x in s.lower():
        if alph.find(x) >= 0:
            ans[alph.find(x)] += 1
            
    if t == "z" or t == '"""' or t == "nt." or t == "en.":
        break

for al, num in zip(alph, ans):
    print(f'{al} : {num}')

Solution (Python):
slst = []
while True:
    try:
        slst.append(input())
    except:
        break
sen = ' '.join(slst)
sen = sen.lower()
alf = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
for i in range(26):
    print(f'{alf[i]} : {sen.count(alf[i])}')

Solution (Python):
import sys

text = [line.lower().split() for line in sys.stdin.readlines()]
new_text = "".join([line for inner in text for line in inner])
keys = [chr(ord("a") + i) for i in range(26)]
values = [0] * 26
alpha = dict(zip(keys, values))

for c in alpha:
    alpha[c] = new_text.count(c)

for key, value in alpha.items():
    print("{0} : {1}".format(key, value))

Solution (Python):
import re
a = [chr(i) for i in range(ord('a'), ord('z')+1)]
l = [0] * len(a)
while True:
  try:
    s = str(input())
  except:
    break
  for c in s:
    p = 0
    if re.match(r'^[a-zA-Z]$', c):
      p = a.index(c.lower())
      l[p] += 1

for i in range(len(a)):
  print("{0} : {1}".format(a[i], l[i]))

Solution (Python):
import sys
alphabet='abcdefghijklmnopqrstuvwxyz'
dic={}
for i in alphabet:
  dic[i]=0


s=''
for i in sys.stdin.read():
  s+=i
s=s.lower()

for i in s:
  if i in alphabet:
    dic[i]+=1

for i in dic:
  print(f'{i} : {dic[i]}')

Solution (Python):


import sys

def main():
    ans_list=[0]*26
    for line in sys.stdin:
        for s in line:
            if s.isupper()==True:
                s=s.lower()
            if ord(s)<97 or ord(s)>122:
                continue
            else:
                ans_list[ord(s)-97]+=1
    for idx,ans in enumerate(ans_list):
        print("{} : {}".format(chr(97+idx),ans))

if __name__=="__main__":
    main()

Solution (Python):
s = ""
while True:
    try:
        s += input()
    except:
        break
s = s.lower()
for i in range(ord("a"),ord("z")+1):
    print(chr(i)+" :",s.count(chr(i)))

Solution (Python):
from collections import OrderedDict
import sys


def is_alphabet(s):
    if (0x41 <= ord(s) and ord(s) <= 0x5A) or (0x61 <= ord(s) and ord(s) <= 0x7A):
        return True
    else:
        return False


d = OrderedDict()
for i in range(0x61, 0x7B):
    d[chr(i)] = 0

S = sys.stdin.read().strip()
for s in S:
    if is_alphabet(s):
        d[s.lower()] += 1

for k, v in d.items():
    print("{} : {}".format(k, v))

Solution (Python):
import sys
a = sys.stdin.read().lower()
c = {}
for i in range(26):
    c[chr(ord('a')+i)] = 0
for i in a:
    if c.get(i) is None:
        continue
    else:
        c[i] += 1
for i in range(26):
    print(chr(ord('a')+i) + ' : ' + str(c[chr(ord('a')+i)]))

Solution (Python):
import sys

lines = []
for line in sys.stdin:
    lines.append(line)

word = "".join(lines)
alphabet = "abcdefghijklmnopqrstuvwxyz"
cnt = {key: 0 for key in alphabet}
for ch in word:
    ch = ch.lower()
    if ch not in alphabet:
        continue
    cnt[ch.lower()] += 1

for key, value in cnt.items():
    print(f"{key} : {value}")

Solution (Python):
C=[]
while True:
    try:
        B=input()
        B=B.lower()
        C.append(B)
    except EOFError:
        break
    A="".join(C)
print('a',':',A.count('a'))
print('b',':',A.count('b'))
print('c',':',A.count('c'))
print('d',':',A.count('d'))
print('e',':',A.count('e'))
print('f',':',A.count('f'))
print('g',':',A.count('g'))
print('h',':',A.count('h'))
print('i',':',A.count('i'))
print('j',':',A.count('j'))
print('k',':',A.count('k'))
print('l',':',A.count('l'))
print('m',':',A.count('m'))
print('n',':',A.count('n'))
print('o',':',A.count('o'))
print('p',':',A.count('p'))
print('q',':',A.count('q'))
print('r',':',A.count('r'))
print('s',':',A.count('s'))
print('t',':',A.count('t'))
print('u',':',A.count('u'))
print('v',':',A.count('v'))
print('w',':',A.count('w'))
print('x',':',A.count('x'))
print('y',':',A.count('y'))
print('z',':',A.count('z'))

Solution (Python):
i=[]
while True:
    try:
        i += input().lower()

    except Exception:
        break

letters = "a b c d e f g h i j k l m n o p q r s t u v w x y z"
list1 = letters.split()

for j in range(len(list1)):

    print("{0} : {1}".format(list1[j], i.count(list1[j])))

Solution (Python):
a=''
while True:
    try:
        a+=input().lower()
    except EOFError:
        break
    a=list(a)
for i in range(ord('a'),ord('z')+1):
    print(chr(i),end='')
    print(' : ',end='')
    k=0
    for j in range((len(a))):
        if a[j]==chr(i):
            k+=1
    print(k)

Solution (Python):
l = list([0] * 26)
while True:
    try:
        s =input().lower()
    except EOFError:
        break
    for i in range(len(s)):
        t = ord(s[i]) - ord('a')
        if t>=0 and t<26:
            l[t] += 1
            
for i in range(26):
    print(f'{chr(i + 97)} : {l[i]}')

Solution (Python):
lst = []
while True:
 try:
  lst += input().lower()
 except: break
orda = ord('a')
ordz = ord('z')
for i in range(orda,ordz+1):
 print('{} : {}'.format(chr(i),lst.count(chr(i))))

Solution (Python):
import string
a = ""


while True:
    try:
        a += input().lower()
    except Exception:
        break


for i in string.ascii_lowercase:
    print(f"{i} : {a.count(i)}")

Solution (Python):
import sys
cnt = {}
for line in sys.stdin:
    for c in list(line.lower()):
        cnt[c] = cnt.get(c,0) + 1
  
for c in range(ord('a'),ord('z')+1):
    print(chr(c),':',cnt.get(chr(c),0))

Solution (Python):


cnt = [0 for i in range(26)]
while True:
        try:
                s = input()
        except:
                break
        for i in range(len(s)):
                m = ord(s[i])-ord('A')
                if (m >= 0 and m < 26):
                        cnt[m]+=1
                m = ord(s[i])-ord('a')
                if(m >= 0 and m < 26):
                        cnt[m]+=1
for i in range(26):
        print(chr(i+ord('a')),":",cnt[i])

Solution (Python):
import sys 
cnts = {} 
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
    
  
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Solution (Python):
n = open(0)
n = n.read()
l1 = "abcdefghijklmnopqrstuvwxyz"
l2 = [0]*26

for i in n:
   for j in range(len(l1)):
      if i == l1[j] or i == l1[j].upper():
         l2[j] += 1

for i in range(len(l1)):
   print(l1[i], ":", l2[i])

Solution (Python):

a='abcdefghijklmnopqrstuvwxyz'
b=[0]*26
while True :
    try:
        moji=(input())
        for i in range (len(moji)) :
            if moji[i].lower() in a :
                b[a.index(moji[i].lower())] += 1
        
            
    except EOFError:
        break


for k in range(26) :
    print(a[k], ":", b[k])

Solution (Python):
count=[0]*26
while True:
    try:
        s=input().lower()
        for i in s:
            if 96<ord(i)<124:
                count[ord(i)-97]+=1
    except:
        break
for i in range(26):
    print(f"{chr(i+97)} : {count[i]}")

Solution (Python):
x=[]
y=[]
z=[]
while True:
    try:
        n=input()
    except EOFError:
        break
    
    
    
    
    
    for i in n.lower():
        x.append(ord(i))
    
    
    
    for k in range(27):
        y.append(97+k)
    
    
    
for l in y:
    if x.count(l)==0:
        z.append(0)
    elif x.count(l)!=0:
        z.append(x.count(l))

    
    
for m in range(26):
    print(chr(m+97),end=' ')
    print(':',end=' ')
    print(z[m])

Solution (Python):
import sys
input_str = sys.stdin.read()

s = str.lower(input_str)

for char in 'abcdefghijklmnopqrstuvwxyz':
  print(char,":", s.count(char))

Solution (Python):
s = []
while True:
    try:
        s += input().lower()

    except EOFError:
        break

letters = "a b c d e f g h i j k l m n o p q r s t u v w x y z"
list1 = letters.split()

for j in range(len(list1)):

    print("{0} : {1}".format(list1[j], s.count(list1[j])))

Solution (Python):
import sys
s = sys.stdin.read().lower()
for c in map(chr, range(97,123)): print(f"{c} : {s.count(c)}")