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



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

Submission status: Wrong Answer

Solution code:
import string


def main():
    str1 = input()
    dict1 = {}
    for char in str1.lower():
        if not char.isalpha():
            continue
        elif dict1.__contains__(char):
            dict1[char] += 1
        else:
            dict1[char] = 1
    for char in string.ascii_lowercase:
        print(char + ' : ' + (str(dict1[char]) if dict1.__contains__(char) else '0'))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():

    cnt = {}
    for i in range(97,123):
        cnt[chr(i)] = 0
    # print(cnt)

    passage = input().lower()

    for s in passage:
        if s.isalpha():
            cnt[s] += 1

    for i in range(97,123):
        print(chr(i), ':', cnt[chr(i)])

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import string

def main():
    chars = {x:0 for x in string.ascii_lowercase}

    for line in input():
        for ch in line.lower():
            if ch in chars:
                chars[ch] += 1

    for ch in string.ascii_lowercase:
        print(ch+" : "+str(chars[ch]))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
s=input()
for str in list("abcdefghijklmnopqrstuvwxyz"):
    print(*[str,":",s.count(str)])

Submission status: Wrong Answer

Solution code:
s=input().lower()
for str in list("abcdefghijklmnopqrstuvwxyz"):
    print(*[str,":",s.count(str)])

Submission status: Wrong Answer

Solution code:
import sys

s = ""
for line in sys.stdin:
    s+=line
for str in list("abcdefghijklmnopqrstuvwxyz"):
    print(*[str,":",s.count(str)])

Submission status: Wrong Answer

Solution code:
import sys

s = ""
for line in sys.stdin:
    s+=line
s.lower()
for str in list("abcdefghijklmnopqrstuvwxyz"):
    print(*[str,":",s.count(str)])

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
bigALlist = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
smoALlist = list('abcdefghijklmnopqrstuvwxyz')
text = list(input())
for j in range(len(bigALlist)):
    cnt = 0
    for i in text:
        if (bigALlist[j] in i) or (smoALlist[j] in i):
            cnt = cnt + 1
    print('{0} : {1}'.format(smoALlist[j],cnt))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
bigALlist = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
smoALlist = list('abcdefghijklmnopqrstuvwxyz')
cnt = [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]
text = list(input())
for j in range(len(bigALlist)):
    cnt = 0
    for i in text:
        if (bigALlist[j] in i) or (smoALlist[j] in i):
            cnt = cnt + 1
    print('{0} : {1}'.format(smoALlist[j],cnt))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
bigALlist = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
smoALlist = list('abcdefghijklmnopqrstuvwxyz')
cnt = [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]
text = list(input())
while True:
    try:
        text.append(list(input()))
    except EOFError:
        break
for j in range(len(bigALlist)):
    cnt = 0
    for i in text:
        if (bigALlist[j] in i) or (smoALlist[j] in i):
            cnt = cnt + 1
    print('{0} : {1}'.format(smoALlist[j],cnt))

Submission status: Wrong Answer

Solution code:
bigALlist = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
smoALlist = list('abcdefghijklmnopqrstuvwxyz')
cnt = [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:
        text = list(input())
        for j in range(len(bigALlist)):
            cnt = 0
            for i in text:
                if (bigALlist[j] in i) or (smoALlist[j] in i):
                    cnt = cnt + 1
            print('{0} : {1}'.format(smoALlist[j],cnt))
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
bigALlist = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
smoALlist = list('abcdefghijklmnopqrstuvwxyz')
cnt = [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:
        text = list(input())
        for j in range(len(bigALlist)):
            for i in text:
                if (bigALlist[j] in i) or (smoALlist[j] in i):
                    cnt[j] = cnt[j] + 1
            print('{0} : {1}'.format(smoALlist[j],cnt))
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
from collections import Counter
alph = [chr(i) for i in range(97, 97+26)]
s = sorted([i.lower() for i in input()[:]])
count = Counter(s)
for key in alph:
    if 'a' <= key <= 'z':
        print('{} : {}'.format(key, count[key]))

Submission status: Wrong Answer

Solution code:
from collections import Counter
alph = [chr(i) for i in range(97, 97+26)]
s = [i.lower() for i in input()[:] for j in range(4)]
count = Counter(s)
for key in alph:
    if 'a' <= key <= 'z':
        print('{} : {}'.format(key, count[key]))

Submission status: Wrong Answer

Solution code:
alpha = ["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"]
C = []
a = input()
a = a.lower()
for i in range(len(alpha)):
    k = a.count(alpha[i])
    C.append(k)
for i in range(len(alpha)):
    print(alpha[i]+" :",C[i])

Submission status: Wrong Answer

Solution code:
alpha = ["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"]
C = []
b = ""
while True:
    a = input()
    if "." not in a:
        a = a.lower()
        b += a
    else:
        break
for i in range(len(alpha)):
    k = b.count(alpha[i])
    C.append(k)
for i in range(len(alpha)):
    print(alpha[i]+" :",C[i])

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import string
d = {}
for ch in list(string.ascii_lowercase):
    d[ch] = 0
    
input = list(input().lower())

for ch in input:
    if ch.isalpha():
        d[ch] += 1
    else:
        pass


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

Submission status: Wrong Answer

Solution code:
alpha = [0 for i in range(26)]
s = raw_input().lower()
for i in s:
    if i == ".":
        break
    if i != " ":
        alpha[ord(i)-97]+=1
for i in range(26):
    print chr(i+97)+" : "+str(alpha[i])

Submission status: Wrong Answer

Solution code:
s = input().lower()
c = 97
while chr(c-1)!='z':
    print('{0} : {1}'.format(chr(c),s.count(chr(c))))
    c += 1

Submission status: Wrong Answer

Solution code:
import sys
s = sys.stdin.read()
c = 97
while chr(c-1)!='z':
    print('{0} : {1}'.format(chr(c),s.count(chr(c))))
    c += 1

Submission status: Wrong Answer

Solution code:
from string import ascii_lowercase
table = dict(zip(ascii_lowercase, [0 for _ in range(len(ascii_lowercase))]))
for s in input().split():
    for c in s:
        if c in table:
            table[c.lower()] += 1
for k, v in table.items():
    print("{} : {}".format(k, v))

Submission status: Wrong Answer

Solution code:
from string import ascii_lowercase
table = dict(zip(ascii_lowercase, [0 for _ in range(len(ascii_lowercase))]))
for s in input().split():
    for c in s:
        if c.lower() in table:
            table[c.lower()] += 1
for k, v in table.items():
    print("{} : {}".format(k, v))

Submission status: Wrong Answer

Solution code:
import re
import collections

answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", input().lower())
for i in n:
    answer[i] += 1
for k, v in answer.items():
    print(k+" : "+str(v))

Submission status: Wrong Answer

Solution code:
from string import ascii_lowercase, ascii_uppercase
s = input()
ans = [0]*26
for c in s:
    i = ascii_lowercase.find(c)
    if i > -1:
        ans[i] += 1
    i = ascii_uppercase.find(c)
    if i > -1:
        ans[i] += 1
for c, t in zip(ascii_lowercase, ans):
    print("%s : %d" % (c, t))

Submission status: Wrong Answer

Solution code:
string = str(input()).lower()

alp = [chr(ord("a")+i) for i in range(26)]

c = 0

for j in range(26):
    c = string.count(alp[j])
    print("%s : %d"%(alp[j],c))

Submission status: Wrong Answer

Solution code:
alp_count = [0]*26



string = str(input()).lower()

alp = [chr(ord("a")+i) for i in range(26)]

c = 0

for j in range(26):
    c = string.count(alp[j])
    alp_count[j] += c
    print("%s : %d"%(alp[j],c))

Submission status: Wrong Answer

Solution code:
ans = [0 for i in range(23)]
S = list(map(ord,input().upper()))
S = [e for e in S if 64<e<91]
print(S)
for i in S:
    ans[i-65]+=1
for i in range(23):
    print("{} : {}".format(chr(97+i),ans[i]))

Submission status: Wrong Answer

Solution code:
ans = [0 for i in range(26)]
S = list(map(ord,input().upper()))
S = [e for e in S if 64<e<91]
print(S)
for i in S:
    ans[i-65]+=1
for i in range(26):
    print("{} : {}".format(chr(97+i),ans[i]))

Submission status: Wrong Answer

Solution code:
ans = [0 for i in range(26)]
S = list(map(ord,input().upper()))
S = [e for e in S if 64<e<91]
for i in S:
    ans[i-65]+=1
for i in range(26):
    print("{} : {}".format(chr(97+i),ans[i]))

Submission status: Wrong Answer

Solution code:
import sys
s = sys.stdin.readlines()

for i in range(26):


    s.count(chr(97+i))

    print(chr(97+i)+" : "+str(s.count(chr(97+i))))

Submission status: Wrong Answer

Solution code:
import sys
s = sys.stdin.read()

for i in range(26):


    s.count(chr(97+i))

    print(chr(97+i)+" : "+str(s.count(chr(97+i))))

Submission status: Wrong Answer

Solution code:
s=input()
for i in range(26):


    s.count(chr(97+i))

    print(chr(97+i)+" : "+str(s.count(chr(97+i))))

Submission status: Wrong Answer

Solution code:
s=input().lower()

for i in range(26):


    s.count(chr(97+i))

    print(chr(97+i)+" : "+str(s.count(chr(97+i))))

Submission status: Wrong Answer

Solution code:
from sys import stdin
from string import ascii_lowercase

count_let = {k : 0 for k in ascii_lowercase}
s = list(stdin.readline().rstrip().lower())
for c in s:
    count_let[c] = count_let.get(c, 0)+1

for k, v in sorted(count_let.items()):
    if k in ascii_lowercase:
        print("{} : {}".format(k, v))

Submission status: Wrong Answer

Solution code:
import sys
import string

count = {k : 0 for k in string.ascii_lowercase}
print(count)
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}")

Submission status: Wrong Answer

Solution code:
import sys
import string

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

Submission status: Wrong Answer

Solution code:
import sys
data = sys.stdin.read()
letters = 'abcdefghijklmnopqrstuvwxyz'
for letter in letters:
    count = 0
    for d in data:
        if letter == d:
            count += 1
    print(f'{letter} : {count}')

Submission status: Wrong Answer

Solution code:
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
			'l', 'm', 'n', 'o', 'p', 'r', 's', 't', 'u', 'v', 'w',
			'x', 'y', 'z']

dic = {}
for c in alphabet:
	dic[c] = 0

string = list(input().rstrip().lower())

for c in string:
	if c in alphabet:
		dic[c] = dic[c] + 1

for key in dic:
	print('{} : {}'.format(key, dic[key]))

Submission status: Wrong Answer

Solution code:
alphabet = ['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']

dic = {}
for c in alphabet:
	dic[c] = 0

string = list(input().rstrip().lower())

for c in string:
	if c in alphabet:
		dic[c] = dic[c] + 1

for key in dic:
	print('{} : {}'.format(key, dic[key]))

Submission status: Wrong Answer

Solution code:
text = input()
text_new = text.lower()
alphabet = ["a","b","c","d","e","f","g","h","i","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
for i in alphabet:
    tmp = 0
    for j in text_new:
        if j == i:
            tmp += 1
    print(i + ":" + str(tmp))

Submission status: Wrong Answer

Solution code:
text = input()
text_new = text.lower()
alphabet = ["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 alphabet:
    tmp = 0
    for j in text_new:
        if j == i:
            tmp += 1
    print(i + " : " + str(tmp))

Submission status: Wrong Answer

Solution code:
ll=[chr(i) for i in range(97, 97+26)]
a=input()
a.lower()
l2=[i for i in a]
for i in ll:
    b=l2.count(i)
    print(i,":",b)

Submission status: Wrong Answer

Solution code:
ll=[chr(i) for i in range(97, 97+26)]
a=input()
a=a.lower()
l2=[i for i in a]
for i in ll:
    b=l2.count(i)
    print(i,":",b)

Submission status: Wrong Answer

Solution code:
alp=[]
txt=[]
for i in range(97,97+26):
	alp.append(chr(i))	
a=input()
for i in a:
	txt.append(str.lower(i))

for i in alp:
	num=0
	for j in txt:
		if i==j:
			num+=1
	print(i+' : '+str(num))

Submission status: Wrong Answer

Solution code:
s = input().lower()
for i in range(97,123):
    print(chr(i),':',s.count(chr(i)))

Submission status: Wrong Answer

Solution code:
import sys

alp=[]
txt=[]
for i in range(97,97+26):
	alp.append(chr(i))

txt=sys.stdin.read()
print(txt)

for i in alp:
	num=0
	for j in txt:
		if i==j:
			num+=1
	print(i+' : '+str(num))

Submission status: Wrong Answer

Solution code:
import sys

alp=[]
txt=[]
for i in range(97,97+26):
	alp.append(chr(i))

txt=sys.stdin.read()

for i in alp:
	num=0
	for j in txt:
		if i==j:
			num+=1
	print(i+' : '+str(num))

Submission status: Wrong Answer

Solution code:
import sys

alp=[]
txt=[]
for i in range(97,97+26):
	alp.append(chr(i))

while True:
	try:
		txt.append(input().lower())
	
	except EOFError:
		break

for i in alp:
	num=0
	for j in txt:
		if i==j:
			num+=1
	print(i+' : '+str(num))

Submission status: Wrong Answer

Solution code:
import string
text = input().lower()
for char in string.ascii_lowercase:
    print(char, ':', text.count(char))

Submission status: Wrong Answer

Solution code:
import string
text = ''
text += input().lower()
for char in string.ascii_lowercase:
    print(char, ':', text.count(char))

Submission status: Wrong Answer

Solution code:

Submission status: Wrong Answer

Solution code:
sentence = input()
count = [0 for i in range(26)]
alpha = "abcdefghijklmnopqrstuvwxyz"
for letter in sentence:
    letter.lower()
    num = 0
    for j in alpha:
        if letter == j:
            count[num] += 1
            break
        else:
            num += 1
num = 0
for k in alpha:
    print(k + " : " + str(count[num]))
    num += 1

Submission status: Wrong Answer

Solution code:
sentence = input()
count = [0 for i in range(26)]
alpha = "abcdefghijklmnopqrstuvwxyz"
for letter in sentence:
    letter.lower()
    num = 0
    for j in alpha:
        if letter == j:
            count[num] += 1
        else:
            num += 1
num = 0
for k in alpha:
    print(k + " : " + str(count[num]))
    num += 1

Submission status: Wrong Answer

Solution code:
moji = input()
moji = moji.lower()

moji2 = [chr(i) for i in range(97,97+26)]

for j in moji2:
	print(j+" : "+str(moji.count(j)))

Submission status: Wrong Answer

Solution code:
table = [0] * 26
string = list(input())
for s in string:
  n = ord(s.lower()) - 97
  if n >= 0 and n <= 25:
    table[n] += 1

for idx, s in enumerate(table):
  print(chr(idx + 97) + " : " + str(s))

Submission status: Wrong Answer

Solution code:
letter="abcdefghijklmnopqrstuvwxyz"
table=[0]*26
input_str=input()

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

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

Submission status: Wrong Answer

Solution code:
import sys

letter="abcdefghijklmnopqrstuvwxyz"
while True:
    table=[0]*26
    try:
        input_str=input()
    except:
        break
    for A in input_str:
        index=0
        for B in letter:
            if A == B or A == B.upper():
                table[index] += 1
                break
                index += 1

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

Submission status: Wrong Answer

Solution code:
letter="abcdefghijklmnopqrstuvwxyz"
while True:
    table=[0]*26
    try:
        input_str=input()
    except:
        break
    for A in input_str:
        index=0
        for B in letter:
            if A == B or A == B.upper():
                table[index] += 1
                break
            index += 1

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

Submission status: Wrong Answer

Solution code:
letter="abcdefghijklmnopqrstuvwxyz"
table=[0]*26
while True:
    try:
        input_str=input()
    except:
        break
    for A in input_str:
        index=0
        for B in letter:
            if A == B or A == B.upper():
                table[index] += 1
                break
            index += 1

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

Submission status: Wrong Answer

Solution code:
a = "abcdefghijklmnopqrstuvwxyz"
b = input()
for i in range(26):
    print(a[i],':',b.count(a[i]))

Submission status: Wrong Answer

Solution code:
a = "abcdefghijklmnopqrstuvwxyz"
b = input().lower()
for i in range(26):
    print(a[i],':',b.count(a[i]))

Submission status: Wrong Answer

Solution code:
a = "abcdefghijklmnopqrstuvwxyz"
b = ''
while 1:
    try:
        b += input().lower()
        print(b)
    except:
        break
for i in range(26):
    print(a[i],':',b.count(a[i]))

Submission status: Wrong Answer

Solution code:
#coding: UTF-8

buf = str(input())

print("a :", buf.count("a") + buf.count("A"))
print("b :", buf.count("b") + buf.count("B"))
print("c :", buf.count("c") + buf.count("C"))
print("d :", buf.count("d") + buf.count("D"))
print("e :", buf.count("e") + buf.count("E"))
print("f :", buf.count("f") + buf.count("F"))
print("g :", buf.count("g") + buf.count("G"))
print("h :", buf.count("h") + buf.count("H"))
print("i :", buf.count("i") + buf.count("I"))
print("j :", buf.count("j") + buf.count("J"))
print("k :", buf.count("k") + buf.count("K"))
print("l :", buf.count("l") + buf.count("L"))
print("m :", buf.count("m") + buf.count("M"))
print("n :", buf.count("n") + buf.count("N"))
print("o :", buf.count("o") + buf.count("O"))
print("p :", buf.count("p") + buf.count("P"))
print("q :", buf.count("q") + buf.count("Q"))
print("r :", buf.count("r") + buf.count("R"))
print("s :", buf.count("s") + buf.count("S"))
print("t :", buf.count("t") + buf.count("T"))
print("u :", buf.count("u") + buf.count("U"))
print("v :", buf.count("v") + buf.count("V"))
print("w :", buf.count("w") + buf.count("W"))
print("x :", buf.count("x") + buf.count("X"))
print("y :", buf.count("y") + buf.count("Y"))
print("z :", buf.count("z") + buf.count("Z"))

Submission status: Wrong Answer

Solution code:
#coding: UTF-8

buf = str(input())

lower = [chr(i) for i in range(97, 97+26)]
upper = [chr(i) for i in range(65, 65+26)]
count = [0]*(26)

for i in range(26):
    count[i] = buf.count(lower[i]) + buf.count(upper[i])
    print(lower[i], ":", count[i])

Submission status: Wrong Answer

Solution code:
st=[]
while True:
  try:
    n=input()
  
    if n=="":
       break
    
    st += n.lower()
    char = "abcdefghijklmnopqrstuvwxyz"

    for i in range(len(char)):
      print(char[i],":",st.count(char[i]))
  

  except:
    break

Submission status: Wrong Answer

Solution code:
import sys
s=input().lower()
for i in range(97,123):
    print(chr(i),':',s.count(chr(i)))

Submission status: Wrong Answer

Solution code:
c = input()
str = c.lower()
c_list = list(str)

print('a :',c_list.count('a'))
print('b :',c_list.count('b'))
print('c :',c_list.count('c'))
print('d :',c_list.count('d'))
print('e :',c_list.count('e'))
print('f :',c_list.count('f'))
print('g :',c_list.count('g'))
print('h :',c_list.count('h'))
print('i :',c_list.count('i'))
print('j :',c_list.count('j'))
print('k :',c_list.count('k'))
print('l :',c_list.count('l'))
print('m :',c_list.count('m'))
print('n :',c_list.count('n'))
print('o :',c_list.count('o'))
print('p :',c_list.count('p'))
print('q :',c_list.count('q'))
print('r :',c_list.count('r'))
print('s :',c_list.count('s'))
print('t :',c_list.count('t'))
print('u :',c_list.count('u'))
print('v :',c_list.count('v'))
print('w :',c_list.count('w'))
print('x :',c_list.count('x'))
print('y :',c_list.count('y'))
print('z :',c_list.count('z'))

Submission status: Wrong Answer

Solution code:
a = str(input())
alist = list(a)
alphabet = ["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"]
ALPHABET = ["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"]
aa = [0]*27
for num in alist:
    itr =0
    for alp in alphabet:
        if num == alp:
            aa[itr] += 1
        itr += 1
    itr = 0
    for ALP in ALPHABET:
        if num == ALP:
            aa[itr] += 1
        itr += 1
for i in range(26):
    print("{} : {}".format(alphabet[i], aa[i]))

Submission status: Wrong Answer

Solution code:
data = input()
for i in range(0x61,0x7b):
    print("%c : %d"  %(i,data.count(chr(i))))

Submission status: Wrong Answer

Solution code:
data = input()
for i in range(0x61,0x7b):
    print("%c : %d"  %(i,data.lower().count(chr(i))))

Submission status: Wrong Answer

Solution code:
s = input()

for i in range(97,123):
  print(chr(i),':',s.count(chr(i)))

Submission status: Wrong Answer

Solution code:
s = input()

for i in range(97,123):
  print(chr(i),':',s.count(chr(i).lower()))

Submission status: Wrong Answer

Solution code:
s = input()
s = s.lower()

for i in range(97,123):
  print(chr(i),':',s.count(chr(i)))

Submission status: Wrong Answer

Solution code:
import sys

s = input()
s = s.lower()

for i in range(97,123):
  print(chr(i),':',s.count(chr(i)))

Submission status: Wrong Answer

Solution code:
s = raw_input()
D = [0 for i in range(26)]
for c in s:
    d = ord(c)
    idx = -1
    if d >= ord('a') and d <= ord('z'):
        idx = d - ord('a')
    if d >= ord('A') and d <= ord('Z'):
        idx = d - ord('A')
    if idx >= 0:
        D[idx] = D[idx] + 1

for i in range(0,26):
    c = chr(i + ord('a'))
    print c + " : " + str(D[i])

Submission status: Wrong Answer

Solution code:
alphabet = "abcdefghijklmnopqrstuvwxyz"
count = [0 for i in range(26)]
s = raw_input()
for i in range(len(s)):
    if('a' <= s[i] and s[i] <= 'z'):
        count[ord(s[i]) - ord('a')] += 1
    elif('A' <= s[i] and s[i] < 'Z'):
        count[ord(s[i]) - ord('A')] += 1
for i in range(26):
    print("%c : %d" %(alphabet[i], count[i]))

Submission status: Wrong Answer

Solution code:
s = ""
while True:
    try:
        x = raw_input()
    except:
        break
    s += x

for i in range(26):
    c = chr(i + ord('a'))
    print('%s : %d' %(c, s.count(c)))

Submission status: Wrong Answer

Solution code:
l = {chr(i): 0 for i in range(ord("a"), ord("z")+1)}
s = input().lower()
for s_ in s:
    if ord("a") <= ord(s_) <= ord("z"):
        l[s_] += 1
for k in sorted(l.keys()):
    print("%c : %d" %(k, l[k]))

Submission status: Wrong Answer

Solution code:
n=raw_input()
l=[0]*26
for i in n:
    k=ord(i.lower())
    if 96<k<123:l[k-97]+=1
for i in range(26):print chr(i+97),':',l[i]

Submission status: Wrong Answer

Solution code:
S = raw_input()
a = 'abcdefghijklmnopqrstuvwxyz'
A = [i for i in a]
for j in range(26):
	print str(A[j])+" : "+str(S.count(a[j]))

Submission status: Wrong Answer

Solution code:
S = raw_input().lower()
a = 'abcdefghijklmnopqrstuvwxyz'
for j in range(26):
	print str(a[j])+" : "+str(S.count(a[j]))

Submission status: Wrong Answer

Solution code:
import string

text = input().lower()

for char in string.ascii_lowercase:
    print("{} : {}".format(char, text.count(char)))

Submission status: Wrong Answer

Solution code:

text = input()
a = []
a.append([chr(x) for x in range(ord('a'), ord('z') + 1)])
textList = []
for x in range(len(text)):
    textList.append(text[x].lower())

for x in range(len(a[0])):
    print(a[0][x], ':', textList.count(a[0][x]))

Submission status: Wrong Answer

Solution code:
alphabetTable = dict.fromkeys([chr(i) for i in range(97, 123)], 0)

text = input()

for i in range(len(text)):
    if text[i] in alphabetTable:
        alphabetTable[text[i]] += 1

sortedTable = sorted(alphabetTable.keys())
for r in sortedTable:
    print(r,':',alphabetTable[r])

Submission status: Wrong Answer

Solution code:
alphabetTable = dict.fromkeys([chr(i) for i in range(97, 123)], 0)

text = input()

for i in range(len(text)):
    if text[i].lower() in alphabetTable:
        alphabetTable[text[i].lower()] += 1

sortedTable = sorted(alphabetTable.keys())
for r in sortedTable:
    print(r,':',alphabetTable[r])

Submission status: Wrong Answer

Solution code:

text = input()
a = {}
for x in range(ord('a'), ord('z') + 1):
    a[chr(x)] =  list(text.lower()).count(chr(x))
    print(chr(x), ':', a[chr(x)])

Submission status: Wrong Answer

Solution code:
a = {x:0 for x in range(ord('a'), ord('z') + 1)}

text = input()
for x in text:
    if ord('a') <= ord(x) <= ord('z'):
        a[ord(x.lower())] += 1

for x in range(ord('a'), ord('z') + 1):
    print(chr(x), ':', a[x])

Submission status: Wrong Answer

Solution code:
a = {x:0 for x in range(ord('a'), ord('z') + 1)}

while True:
    try:
        text = input()
        for x in text:
            if ord('a') <= ord(x) <= ord('z'):
                a[ord(x.lower())] += 1

        for x in range(ord('a'), ord('z') + 1):
            print(chr(x), ':', a[x])
    except EOFError:
        break

Submission status: Wrong Answer

Solution code:
a = {x:0 for x in range(ord('a'), ord('z') + 1)}

while True:
    try:
        text = input()
        for x in text:
            if ord('a') <= ord(x) <= ord('z'):
                a[ord(x.lower())] += 1
    except EOFError:
        break

for x in range(ord('a'), ord('z') + 1):
    print(chr(x), ':', a[x])

Submission status: Wrong Answer

Solution code:
alphabet = 'abcdefghijklmnopqrstuvwxyz'
dic = {}
for ch in alphabet:
    dic[ch] = 0
st = raw_input()
for ch in st:
    if ch.isupper():
        dic[ch.lower()] +=1
    elif ch.islower():
        dic[ch] +=1

for k in sorted(dic.keys()):
    print k +' : ' + str(dic[k])

Submission status: Wrong Answer

Solution code:
import collections
import string

if __name__ == '__main__':
    s = input().lower()
    counter = collections.Counter(s)
    lows = string.ascii_lowercase
    cnt = [counter[ch] for ch in lows]
    for (ch, n) in zip(lows, cnt):
        print('{0} : {1}'.format(ch, n))

Submission status: Wrong Answer

Solution code:
import collections
import string

def solve(s):
    counter = collections.Counter(s)
    lows = string.ascii_lowercase
    cnt = [counter[ch] for ch in lows]
    for (ch, n) in zip(lows, cnt):
        print('{0} : {1}'.format(ch, n))

if __name__ == '__main__':
    s = ''
    while True:
        try:
            s += input()
        except:
            break
    solve(s)

Submission status: Wrong Answer

Solution code:
#coding:utf-8
#1_8_C 2015.4.7
counter = {chr(i) : 0 for i in range(ord('a') , ord('z') + 1)}

sentence = input().lower()
for s in sentence:
    if ord('a') <= ord(s) <= ord('z'):
        counter[s] += 1
    else:
        continue

for i,j in counter.items():
    print('{} : {}'.format(i,j))

Submission status: Wrong Answer

Solution code:
#coding:utf-8
#1_8_C 2015.4.7
counter = {chr(i) : 0 for i in range(ord('a') , ord('z') + 1)}

sentence = input().lower()
for s in sentence:
    if ord('a') <= ord(s) <= ord('z'):
        counter[s] += 1
    else:
        continue

for i,j in counter.items():
    print('{}:{}'.format(i,j))

Submission status: Wrong Answer

Solution code:
print('hogehoge')

Submission status: Wrong Answer

Solution code:
#coding:utf-8
#1_8_C 2015.4.7
sentence = input().lower()
for i in range(ord('a') , ord('z') + 1):
    print('{} : {}'.format(chr(i),sentence.count(chr(i))))

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import string
import itertools

key = list(string.ascii_lowercase)
value = list([0 for x in range(0, 26)])
d = dict(itertools.izip(key, value))

n = "".join("".join("".join(sys.stdin.readlines()).split('\n')).split(' '))

for i in n:
    if i.lower().isalpha():
        d[i.lower()] += 1

for key, value in d.iteritems():
    print key, ':', value

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import string
import itertools

key = list(string.ascii_lowercase)
value = list([0 for x in range(0, 26)])
d = dict(itertools.izip(key, value))

n = ''
while True:
    i = sys.stdin.read(1)
    if (not i.isspace()) and (not i.isalnum()) and (i != '-'):
        break
    elif i != '\n' :
        n += i

for i in n:
    if i.lower().isalpha():
        d[i.lower()] += 1

for key, value in d.iteritems():
    print key, ':', value

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import string
import itertools

key = list(string.ascii_lowercase)
value = list([0 for x in range(0, 26)])
d = dict(itertools.izip(key, value))

n = ''
while True:
    i = sys.stdin.read(1)
    if (not i.isspace()) and (not i.isalnum()) and (i != '-'):
        break
    elif i != '\n' :
        n += i

#print n
#n = "".join("".join("".join(sys.stdin.readlines()).split('\n')).split(' '))

for i in n:
    if i.lower().isalpha():
        d[i.lower()] += 1

for k in key:
    print k, ':', d[k]

Submission status: Wrong Answer

Solution code:
x=input()

alpha=[chr(s) for s in range(ord("a"),ord("z")+1)]

cnt=[i*0 for i in range(ord("a"),ord("z")+1)]

for k in alpha :
  cnt[ord("k")-ord("k")]=x.count(k)
  print(k,':', cnt[ord("k")-ord("k")])

Submission status: Wrong Answer

Solution code:
import sys

chash = {}
for i in range( ord( 'a' ), ord( 'z' ) ):
	chash[ chr( i ) ] = 0

while True:
	line = sys.stdin.readline().rstrip()
	if not line:
		break
	for i in range( len( line ) ):
		if line[i].isalpha():
			chash[ line[i].lower() ] += 1

for i in range( ord( 'a' ), ord( 'z' ) ):
	print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )

Submission status: Wrong Answer

Solution code:
import sys

chash = {}
for i in range( ord( 'a' ), ord( 'z' ) ):
	chash[ chr( i ) ] = 0

for line in sys.stdin:
	for i in range( len( line ) ):
		if line[i].isalpha():
			chash[ line[i].lower() ] += 1

for i in range( ord( 'a' ), ord( 'z' ) ):
	print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )

Submission status: Wrong Answer

Solution code:
import sys
 
chash = {}
for i in range( ord( 'a' ), ord( 'z' ) ):
    chash[ chr( i ) ] = 0

lines = sys.stdin.readlines()
for i in range( len( lines ) ):
	for j in range( len( lines[i] ) ):
	    if lines[i][j].isalpha():
	        chash[ lines[i][j].lower() ] += 1
 
for i in range( ord( 'a' ), ord( 'z' ) ):
    print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )