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: Runtime Error

Solution code:
if __name__ == "__main__":
    while True:
        input_word = input()
        if not input_word:
            break

        alphabetical_table = {}
        for i in range(ord("a"),ord("z")+1):
            alphabetical_table[chr(i)] = 0

        input_word = input_word.lower()
        for ch in input_word:
            if ch.isalpha() == True:
                alphabetical_table[ch] += 1

        for tp in alphabetical_table.items():
            print(tp[0] + " : " + str(tp[1]))

Submission status: Runtime Error

Solution code:
s = []
while True:
    x = raw_input()
    if x == '': break
    s.append(x.lower())
s = ''.join(s)

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

Submission status: Runtime Error

Solution code:
s = []
while True:
    x = raw_input()
    if x == None: break
    s.append(x.lower())
s = ''.join(s)

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

Submission status: Runtime Error

Solution code:
t=list(raw_input().lower())
c=[0 for i in range(26)]
for i in range(len(t)):
        c[ord(t[i])-ord("a")]+=1
for i in range(26):
        print chr(ord("a")+i),":",c[i]

Submission status: Runtime Error

Solution code:
t=list(raw_input().lower())
c=[0 for i in range(26)]
for i in range(len(t)):
        c[ord(t[i])-ord(u"a")]+=1
for i in range(26):
        print chr(ord("a")+i),":",c[i]

Submission status: Runtime Error

Solution code:
import sys
import io
import re
import math
start = time.clock()
i = [0]*255
#n = raw_input()
for x in sys.stdin.read().lower:
    i[ord(x)]+=1
for y in xrange(ord('a'), ord('z')+1):
    print chr(y)+ ' : ' +i[y]

Submission status: Runtime Error

Solution code:
import sys
import io
import re
import math

i = [0]*255
#n = raw_input()
for x in sys.stdin.read().lower:
    i[ord(x)]+=1
for y in xrange(ord('a'), ord('z')+1):
    print chr(y)+ ' : ' +i[y]

Submission status: Runtime Error

Solution code:
import sys
import io
import re
import math
#start = time.clock()
i = [0]*127
#n = raw_input()
for x in sys.stdin.read().lower:
    i[ord(x)]+=1
for y in range(ord('a'), ord('z')+1):
    print chr(y)+ ' : ' +i[y]

Submission status: Runtime Error

Solution code:
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:
	s = raw_input()
	if s == '':
		break
	for i in s:
		for j in range(0, 26):
			if dic[j][0] == i.lower():
				dic[j][1] += 1
				break
for i in range(0, 26):
	print dic[i][0], ':', dic[i][1]

Submission status: Runtime Error

Solution code:
az = ["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"]
sum_az = [0 for x in range(26)]

while True:
    x = raw_input()
    x.lower()
    for i in range(26):
        for j in range(len(x)):
            if x[j] == az[i]:
                sum_az[i] += 1
    if !x:
        break

for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
az = ["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"]
sum_az = [0 for x in range(26)]

while True:
    x = raw_input()
    x.lower()
    for i in range(26):
        for j in range(len(x)):
            if x[j] == az[i]:
                sum_az[i] += 1
    if x is NONE:
        break

for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
az = ["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"]
sum_az = [0 for x in range(26)]

while True:
    x = raw_input()
    x.lower()
    for i in range(26):
        for j in range(len(x)):
            if x[j] == az[i]:
                sum_az[i] += 1
    if x is None:
        break

for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
az = ["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"]
sum_az = [0 for x in range(26)]

while True:
    if x is None:
        break
    x = raw_input()
    x.lower()
    for i in range(26):
        for j in range(len(x)):
            if x[j] == az[i]:
                sum_az[i] += 1


for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
az = ["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"]
sum_az = [0 for x in range(26)]

while True:
    if not x:
        break
    x = raw_input()
    x.lower()
    for i in range(26):
        for j in range(len(x)):
            if x[j] == az[i]:
                sum_az[i] += 1


for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
az = ["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"]
sum_az = [0 for x in range(26)]

while True:

    x = raw_input()
    x.lower()
    for i in range(26):
        for j in range(len(x)):
            if x[j] == az[i]:
                sum_az[i] += 1


for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
az = ["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"]
sum_az = [0 for x in range(26)]

while True:
    x = raw_input()
    if not x:
        break
    x.lower()
    for i in range(26):
        for j in range(len(x)):
            if x[j] == az[i]:
                sum_az[i] += 1


for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
az = ["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"]
sum_az = [0 for x in range(26)]

while True:
    x = raw_input()
    if x:
        break
    x.lower()f
    for i in range(26):
        for j in range(len(x)):
            if x[j] == az[i]:
                sum_az[i] += 1


for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
az = ["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"]
sum_az = [0 for x in range(26)]

while True:
    x = raw_input()
    x.lower()
    for i in range(26):
        for j in range(len(x)):
            if x[j] == az[i]:
                sum_az[i] += 1


for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
import sys
az =["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"]
sum_az = [0 for x in range(26)]

for x in sys.stdin.read().lower()
    for i in range(26):
        for j in range(len(x)):
            if x[j] == az[i]:
                sum_az[i] += 1


for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
import sys
import io
az =["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"]
sum_az = [0 for x in range(26)]

for x in sys.stdin.read().lower()
    for i in range(26):
        for j in range(len(x)):
            if x[j] == az[i]:
                sum_az[i] += 1


for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
import sys
import io
import re
az =["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"]
sum_az = [0 for x in range(26)]

for x in sys.stdin.read().lower()
    for i in range(26):
        for j in range(len(x)):
            if x[j] == az[i]:
                sum_az[i] += 1


for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
import sys
import io
import re
az =["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"]
sum_az = [0 for x in range(26)]

for x in sys.stdin.read().lower()
    for i in range(26):
        if x == az[i]:
                sum_az[i] += 1


for i in range(26):
    print ("%s : %d" % (az[i], sum_az[i]))

Submission status: Runtime Error

Solution code:
s = ''
while True:
    t = input()
    if len(t) == 0: break
    s += t.lower()

for c in 'abcdefghijklmnopqrstuvwxyz':
    print('{} : {}'.format(c, s.count(c)))

Submission status: WA: Presentation Error

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: WA: Presentation Error

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: WA: Presentation Error

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: WA: Presentation Error

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: WA: Presentation Error

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: WA: Presentation Error

Solution code:
alp_count = [0]*26



string = open(0).read()
string = string.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\n"%(alp[j],alp_count[j]))

Submission status: WA: Presentation Error

Solution code:
import sys
l = []
for i in sys.stdin.readlines():
    l += i.lower().rstrip()
word = "abcdefghijklmnopqrstuvwxyz"
for i in word:
    n = l.count(i)
    print(str(i)+":"+str(n))

Submission status: WA: Presentation Error

Solution code:
import sys
l = []
for i in sys.stdin.readlines():
    l += i.lower().rstrip()
word = "abcdefghijklmnopqrstuvwxyz"
for i in word:
    n = l.count(i)
    print(str(i)+":"+str(n))
print()

Submission status: WA: Presentation Error

Solution code:
import sys
l = []
for i in sys.stdin.readlines():
    l += i.lower().rstrip()
word = "abcdefghijklmnopqrstuvwxyz"
for i in word:
    n = l.count(i)
    print(str(i)+":",int(n))

Submission status: WA: Presentation Error

Solution code:
import sys
l = []
for i in sys.stdin.readlines():
    l += i.lower().rstrip()
word = "abcdefghijklmnopqrstuvwxyz"
for i in word:
    n = int(l.count(i))
    print(str(i)+":",n)

Submission status: WA: Presentation Error

Solution code:
import sys
l = []
for i in sys.stdin.readlines():
    l += i.lower().rstrip()
#print(l)
word = "abcdefghijklmnopqrstuvwxyz"
for i in word:
    n = l.count(i)
    print("{}:{}".format(i,n))

Submission status: WA: Presentation Error

Solution code:
import sys
l = ""
for i in sys.stdin.readlines():
    l += i.lower().rstrip()
#print(l)
word = "abcdefghijklmnopqrstuvwxyz"
for i in word:
    n = l.count(i)
    print("{}:{}".format(i,n))

Submission status: WA: Presentation Error

Solution code:
import sys
l = ""
for i in sys.stdin.readlines():
    l += i.lower().rstrip()
word = "abcdefghijklmnopqrstuvwxyz"
for i in word:
    n = l.count(i)
    print("{}:{}".format(i,n))

Submission status: WA: Presentation Error

Solution code:
import sys
l = ""
for i in sys.stdin.readlines():
    l += i.lower().rstrip()
word = "abcdefghijklmnopqrstuvwxyz"
for i in word:
    n = l.count(i)
    print("{} :{}".format(i,n))

Submission status: WA: Presentation Error

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: WA: Presentation Error

Solution code:
s = input().lower().replace(" ", "")
print("a:" + str(s.count('a')))
print("b:" + str(s.count('b')))
print("c:" + str(s.count('c')))
print("d:" + str(s.count('d')))
print("e:" + str(s.count('e')))
print("f:" + str(s.count('f')))
print("g:" + str(s.count('g')))
print("h:" + str(s.count('h')))
print("i:" + str(s.count('i')))
print("j:" + str(s.count('j')))
print("k:" + str(s.count('k')))
print("l:" + str(s.count('l')))
print("m:" + str(s.count('m')))
print("n:" + str(s.count('n')))
print("o:" + str(s.count('o')))
print("p:" + str(s.count('p')))
print("q:" + str(s.count('q')))
print("r:" + str(s.count('r')))
print("s:" + str(s.count('s')))
print("t:" + str(s.count('t')))
print("u:" + str(s.count('u')))
print("v:" + str(s.count('v')))
print("w:" + str(s.count('w')))
print("x:" + str(s.count('x')))
print("y:" + str(s.count('y')))
print("z:" + str(s.count('z')))



'''
aschii = []
for i in s:
    # aschii.append(i.ord())
    print(chr(i).ord())
print(aschii)
'''

Submission status: WA: Presentation Error

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: WA: Presentation Error

Solution code:
import string

text = input().lower()

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

Submission status: WA: Presentation Error

Solution code:
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)))

Submission status: WA: Presentation Error

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: WA: Presentation Error

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: WA: Presentation Error

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

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

cnt=[i*0 for i in range(len(alpha)+1)]

for k in range(len(alpha)) :
  cnt[k]=x.count(alpha[k])
  print(alpha[k]," : ",cnt[k])

Submission status: WA: Presentation Error

Solution code:
import sys
from collections import Counter

c = Counter()
for line in sys.stdin.readlines():
    c.update(line.lower())
for a in 'abcdefghijklmnopqrstuvwxyz':
    print a + ' : ', c.get(a, 0)

Submission status: WA: Presentation Error

Solution code:
docs = raw_input().lower()
for ascii_num in range(97, 123):
    print '%s:%d' % (chr(ascii_num), docs.count(chr(ascii_num)))

Submission status: WA: Presentation Error

Solution code:
docs = ''
while True:
    docs += (raw_input().lower())
    if docs[len(docs)-1] == '.':
        break
for ascii_num in range(97, 123):
    print '%s:%d' % (chr(ascii_num), docs.count(chr(ascii_num)))

Submission status: WA: Presentation Error

Solution code:
alphabet = [0]*26
i = 0;
for j in range(97,123):
	alphabet[i] = chr(j)
	i += 1
al_count = [0]*26
while True :
	words = raw_input().lower().split()
	for k in words :
		for l in list(k):
			if l=='a':
				al_count[0] += 1
			elif l=='b':
				al_count[1] += 1
			elif l=='c':
				al_count[2]+=1	
			elif l=='d':
				al_count[3] += 1
			elif l=='e':
				al_count[4]+=1
			elif l=='f':
				al_count[5] += 1
			elif l=='g':
				al_count[6]+=1
			elif l=='h':
				al_count[7] += 1
			elif l=='i':
				al_count[8]+=1
			elif l=='j':
				al_count[9] += 1
			elif l=='k':
				al_count[10]+=1	
			elif l=='l':
				al_count[11] += 1
			elif l=='m':
				al_count[12]+=1	
			elif l=='n':
				al_count[13] += 1
			elif l=='o':
				al_count[14]+=1
			elif l=='p':
				al_count[15] += 1
			elif l=='q':
				al_count[16]+=1
			elif l=='r':
				al_count[17] += 1
			elif l=='s':
				al_count[18]+=1
			elif l=='t':
				al_count[19] += 1
			elif l=='u':
				al_count[20]+=1
			elif l=='v':
				al_count[21]+=1
			elif l=='w':
				al_count[22] += 1
			elif l=='x':
				al_count[23]+=1
			elif l=='y':
				al_count[24] += 1
			elif l=='z':
				al_count[25]+=1
	if list(words[-1])[-1]=='.':
		break
for i in range(26):
	print '%c :%d' %(alphabet[i],al_count[i])

Submission status: WA: Presentation Error

Solution code:
alpha=[chr(s) for s in range(ord("a"),ord("z")+1)]
snt=input()
snt_2=snt.lower()
for i in range(26):
   cnt=snt_2.count(alpha[i])
   print(alpha[i]+":"+str(cnt))

Submission status: WA: Presentation Error

Solution code:
alpha=[chr(s) for s in range(ord("a"),ord("z")+1)]
snt=input()
snt_2=snt.lower()
for i in range(26):
   cnt=snt_2.count(alpha[i])
   print(alpha[i],str(cnt),sep=":")

Submission status: WA: Presentation Error

Solution code:
a = [chr(i) for i in range(97, 123)]
line = input().lower()
for c in a:
    print("{0}:{1}".format(c, line.count(c)))

Submission status: WA: Presentation Error

Solution code:
ip=raw_input().lower()
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for i in alphabet:
    print i +':'+ str(ip.count(i))

Submission status: WA: Presentation Error

Solution code:
cs = { c : 0 for c in list("abcdefghijklmnopqrstuvwxyz")}
for c in list(input()):
    c = c.lower()
    if c in cs.keys():
        cs[c] = cs[c] + 1
for (c,cnt) in sorted(list(cs.items())):
    print('{0}: {1}'.format(c,cnt))

Submission status: WA: Presentation Error

Solution code:
#!/usr/bin/env python
#coding: UTF-8
import sys

a = sys.stdin.readlines()

for i in a:
	b = []
	for j in i:
		b.append(j.lower())
	for i in range(97, 97+26):
		print chr(i)+":"+str(b.count(chr(i)))

Submission status: WA: Presentation Error

Solution code:
from collections import OrderedDict

cnt = OrderedDict()
for i in range(ord('a'), ord('z') + 1):
    cnt[chr(i)] = 0
s = input().lower()
for i in s:
    if i in cnt:
        cnt[i] += 1
for k, v in cnt.items():
    print('{}:{}'.format(k, v))

Submission status: WA: Presentation Error

Solution code:
s = input().lower()
A = 'abcdefghijklmnopqrstuvwxyz'
for c in A:
    print(c+':{}'.format(s.count(c)))

Submission status: WA: Presentation Error

Solution code:
y = ""
while True:
    try:
        c = raw_input().lower()
        y = y + c
    except:
        break

for i in range(ord('a'),ord('z')+1):
    print("{}: {}".format(chr(i),y.count(chr(i))))

Submission status: WA: Presentation Error

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

for i in range(ord('a'), ord('z')+1):
 print("{0}:{1}".format(chr(i), s.count(chr(i))))

Submission status: WA: Presentation Error

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

for data in dataset:
 for s in range(ord('a'), ord('z') + 1):
  print("{0}:{1}".format(chr(s), data.lower().count(chr(s))))

Submission status: WA: Presentation Error

Solution code:
sen=raw_input()
a=[]
b=[]
c=[]
d=[]
e=[]
f=[]
g=[]
h=[]
i=[]
j=[]
k=[]
l=[]
m=[]
n=[]
o=[]
p=[]
q=[]
r=[]
s=[]
t=[]
u=[]
v=[]
x=[]
y=[]
z=[]
w=[]
count={'a':a,'b':b,'c':c,'d':d,'e':e,'f':f,'g':g,'h':h,'i':i,'j':j,'k':k,'l':l,'m':m,'n':n,'o':o,'p':p,'q':q,'r':r,'s':s,'t':t,'u':u,'v':v,'w':w,'x':x,'y':y,'z':z}
for i in range(len(sen)):
    if sen[i].isalpha():
        count[sen[i].lower()].append('#')
for char in sorted(count.keys()):
    print('%s:%d'%(char,len(count[char])))

Submission status: WA: Presentation Error

Solution code:
sen=raw_input()
a=[]
b=[]
c=[]
d=[]
e=[]
f=[]
g=[]
h=[]
i=[]
j=[]
k=[]
l=[]
m=[]
n=[]
o=[]
p=[]
q=[]
r=[]
s=[]
t=[]
u=[]
v=[]
x=[]
y=[]
z=[]
w=[]
count={'a':a,'b':b,'c':c,'d':d,'e':e,'f':f,'g':g,'h':h,'i':i,'j':j,'k':k,'l':l,'m':m,'n':n,'o':o,'p':p,'q':q,'r':r,'s':s,'t':t,'u':u,'v':v,'w':w,'x':x,'y':y,'z':z}
for i in range(len(sen)):
    if sen[i].isalpha():
        count[sen[i].lower()].append('#')
for char in sorted(count.keys()):
    print(' %s:%d'%(char,len(count[char])))

Submission status: WA: Presentation Error

Solution code:
sen=raw_input()
a=[]
b=[]
c=[]
d=[]
e=[]
f=[]
g=[]
h=[]
i=[]
j=[]
k=[]
l=[]
m=[]
n=[]
o=[]
p=[]
q=[]
r=[]
s=[]
t=[]
u=[]
v=[]
x=[]
y=[]
z=[]
w=[]
count={'a':a,'b':b,'c':c,'d':d,'e':e,'f':f,'g':g,'h':h,'i':i,'j':j,'k':k,'l':l,'m':m,'n':n,'o':o,'p':p,'q':q,'r':r,'s':s,'t':t,'u':u,'v':v,'w':w,'x':x,'y':y,'z':z}
for i in range(len(sen)):
    if sen[i].isalpha():
        count[sen[i].lower()].append('#')
for char in sorted(count.keys()):
    print('%s: %d'%(char,len(count[char])))

Submission status: WA: Presentation Error

Solution code:
array = input()

char = ["" for _ in range(len(array))]
for i in range(len(array)):
    char[i] = array[i:i+1]

alp = [0 for _ in range(26)]
for c in char:
    for i in range(26):
        if c == chr(i+65) or c == chr(i+97):
            alp[i] += 1

for i in range(26):
    print("{0}:{1}".format(chr(i+97), alp[i]))

Submission status: WA: Presentation Error

Solution code:
import sys
s = sys.stdin.read().lower()
for i in range (ord('a'), ord('z')+1):
	print(str(chr(i)), str(s.count(chr(i))), sep=':')

Submission status: WA: Presentation Error

Solution code:
s=input().lower()
alphabet=list("abcdefghijklmnopqrstuvwxyz")
for i in alphabet:
    print("{}:{}".format(i, s.count(i)))

Submission status: WA: Presentation Error

Solution code:
s=input().lower()
alphabet=list("abcdefghijklmnopqrstuvwxyz")
for i in alphabet:
    print("{}: {}".format(i, s.count(i)))

Submission status: WA: Presentation Error

Solution code:
try:
    a=""
    while True:
        S=input()
        if not S:
            break
        S=S.lower()
        a=a+S
except EOFError:
    pass
for i in range(97,97+26):
    
    b=a.count(chr(i))
    print(chr(i)+": "+str(b))

Submission status: WA: Presentation Error

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

ch=['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 c in ch:
    print("{}:{}".format(c,s.count(c)))

Submission status: WA: Presentation Error

Solution code:
al = [chr(ord('a')+i) for i in range(26)]
spel = input()
spel = spel.lower()
for i in al:
    if spel.count(i):
        print(i, " : ", spel.count(i))
    else:
        print(i, " : ", 0)

Submission status: WA: Presentation Error

Solution code:
import sys

sentence = sys.stdin.read().lower()
alf=[chr(i) for i in range(ord('a'), ord('z')+1)]

ans=dict(zip(alf, [0]*26))

for a in sentence:
  if a in ans:
    ans[a] += 1

for (key, val) in sorted(ans.items()):
  print(key ," : " , val)

Submission status: WA: Presentation Error

Solution code:
s = input()
a = [0 for i in range(26)]
for j in range(len(s)):
    if ord(s[j])-ord("a") >=0 and ord(s[j])-ord("a") <26 :
        a[ord(s[j])-ord("a")]+=1
    elif ord(s[j])-ord("A") >=0 and ord(s[j])-ord("A") <26 :
        a[ord(s[j])-ord("A")]+=1
for k in range(26):
    print(chr(97+k)," : ",a[k])

Submission status: WA: Presentation Error

Solution code:
alphabets = 'abcdefghijklmnopqrstuvwxyz'

cnt = {}
for c in alphabets:
    cnt[c] = 0

line = input()

for c in line:
    if 'a' <= c.lower() <= 'z':
        cnt[c.lower()] += 1

for c in alphabets:
    print('%s:%d' % (c, cnt[c]) )

Submission status: WA: Presentation Error

Solution code:
words = input()
words = words.lower()
for i in [chr(i) for i in range(97,97+26)]:
    print('{0}:{1}'.format(i,words.count(i)))

Submission status: WA: Presentation Error

Solution code:
while True:
    try:
        words = input()
        words = words.lower()
        for i in [chr(i) for i in range(97,97+26)]:
            print('{0}:{1}'.format(i,words.count(i)))
    except:
        break

Submission status: WA: Presentation Error

Solution code:
a = sorted(raw_input().lower())
for i in range(97,123):
    print "%c:%d"%(chr(i),a.count(chr(i)))

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
from collections import OrderedDict as od

dic = od()
for s in "abcdefghijklmnopqrstuvwxyz":
    dic[s] = 0
    
x = input().lower()
for key,value in dic.items():
    value = x.count(key)
    print(key, " : ", value)

Submission status: WA: Presentation Error

Solution code:
# -*- coding: utf-8 -*-

word = list(map(str, input()))

while ' ' in word:
    word.remove(' ')

while '.' in word:
    word.remove('.')

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

for j in range(len(word)):
    char[str(word[j]).lower()] += 1

for k in range(ord('a'), ord('z') + 1):
    print('{0}:{1}'.format(chr(k), char[chr(k)]))

Submission status: WA: Presentation Error

Solution code:
# -*- coding: utf-8 -*-

import sys

word = sys.stdin.read().lower()
for i in range(ord('a'), ord('z') + 1):
    print('{0}:{1}'.format(chr(i), word.count(chr(i))))

Submission status: WA: Presentation Error

Solution code:
#! python3
# counting_characters.py

sent = input()
dic = {chr(x):0 for x in range(ord('a'), ord('z')+1)}

for c in sent:
    x = c.lower()
    if ord('a') <= ord(x) and ord(x) <= ord('z'):
        dic[x] += 1

for k, v in dic.items():
    print(k + ':' + str(v))

Submission status: WA: Presentation Error

Solution code:
S = input().lower()
a_dict = {chr(a): 0 for a in range(97, 123)}
for c in S:
    if c in a_dict:
        a_dict[c] += 1

for k, v in a_dict.items():
    print('{0}: {1}'.format(k, v))

Submission status: WA: Presentation Error

Solution code:

if __name__ == "__main__":
    alphabetical_table = {}
    for i in range(ord("a"),ord("z")+1):
        alphabetical_table[chr(i)] = 0
    
    input_word = input()
    input_word = input_word.lower()
    for ch in input_word:
        if ch.isalpha() == True:
            alphabetical_table[ch] = alphabetical_table[ch] + 1
    
    for tp in alphabetical_table.items():
        print(tp[0] + ":" + str(tp[1]))