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 sys
d = {chr(w): 0 for w in range(97, 123)}
for line in sys.stdin:
    if line == "\n":
        break
    for w in line.lower():
        if chr(97) <= w and w <= chr(122): 
            d[w] += 1
for w in d:
    print("{} : {}".format(w, d[w]))

Submission status: Wrong Answer

Solution code:
import sys
d = [0 for i in range(26)]
for line in sys.stdin:
    if line == "\n":
        break
    for w in line.lower():
        if chr(97) <= w and w <= chr(122): 
            d[97 - ord(w)] += 1
    for i in range(97, 123):
        print("{} : {}".format(chr(i), d[97-i]))

Submission status: Wrong Answer

Solution code:
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
x = input().lower()

for i in x:
    if i in table2:
        table2[i] += 1

for m,n in table2.items():
    print("{0} : {1}".format(m,n))

Submission status: Wrong Answer

Solution code:
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
array = ""
while True:
    try:
        array += str(input().lower())
    except EOFError:
        break

    for i in array:
        if i in table2:
            table2[i] += 1

for m,n in table2.items():
    print("{0} : {1}".format(m,n))

Submission status: Wrong Answer

Solution code:
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
    try:
        x = input().lower()
    except:
        break

    for i in x:
        if i in table2:
            table2[i] += 1

for m,n in table2.items():
    print("{0} : {1}".format(m,n))

Submission status: Wrong Answer

Solution code:
table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
x=""
while True:
    try:
        x += input().lower()
    except:
        break

for i in x:
    if i in table2:
        table2[i] += 1

for m,n in table2.items():
    print("{0} : {1}".format(m,n))

Submission status: Wrong Answer

Solution code:
start = 97	 	#a
end   = 97+26	#b 

box = input().lower()
for i in range(start, end):
	in_num = box.count( chr(i) )
	print("{0} : {1}".format(chr(i), in_num) )

Submission status: Wrong Answer

Solution code:
start = 97
end   = 97+26

box = input().lower()
for i in range(start, end):
	in_num = box.count( chr(i) )
	print("{0} : {1}".format(chr(i), in_num) )

Submission status: Wrong Answer

Solution code:
az = [0 for i in range(26)]
s = input().lower()
l = [ord(i) for i in s]

for i in range(len(l)):
    c = l[i] - 97
    if(c >= 0 and c <= 26):
        az[c] += 1

for i in range(26):
    print('{} : {}'.format(chr(i + 97),az[i]))

Submission status: Wrong Answer

Solution code:
string = input().lower()
alph = ['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 letter in alph:
	sum = 0
	n = -1
	while True:
		n = string.find(letter, n + 1)
		if n == -1:
			break
		sum += 1
	print("{} : {}".format(letter, sum))

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']
cnt = 26 * [0]

I = input()

for i1 in range(len(alphabet)):
    for i2 in range(len(I)):
        if 'A' <= I[i2] <= 'Z':
            w = I[i2].lower()
        else:
            w = I[i2]
        if alphabet[i1] == w:
            cnt[i1] += 1
    print(alphabet[i1] + " : " + str(cnt[i1]))

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']
cnt = 26 * [0]
Input = ""
loop = False

while True:
    I = input()
    for i in I:
        if i == '.':
            loop = True
    if loop:
        break
    Input += I

for i1 in range(len(alphabet)):
    for i2 in range(len(Input)):
        if 'A' <= Input[i2] <= 'Z':
            w = Input[i2].lower()
        else:
            w = Input[i2]
        if alphabet[i1] == w:
            cnt[i1] += 1
    print(alphabet[i1] + " : " + str(cnt[i1]))

Submission status: Wrong Answer

Solution code:
STRING = input().lower()
CHRS = ['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 CHRS:
    print("%s : %d" % (i, STRING.count(i)))

Submission status: Wrong Answer

Solution code:
import sys
STRING = ""
for line in sys.stdin:
    STRING += line
CHRS = ['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 CHRS:
    print("%s : %d" % (i, STRING.count(i)))

Submission status: Wrong Answer

Solution code:
cnt_dict = { key:0 for key in "abcdefghijklmnopqrstuvwxyz"}
string = input().lower()
for i in string:
    if i == " " or ".": continue
    cnt_dict[i] += 1
for i in cnt_dict:
    print( i + " : " + str(cnt_dict[i]) )

Submission status: Wrong Answer

Solution code:
cnt_dict = { key:0 for key in "abcdefghijklmnopqrstuvwxyz"}
string = input().lower()
for i in string:
    if i == " " or i == ".": continue
    cnt_dict[i] += 1
for i in cnt_dict:
    print( i + " : " + str(cnt_dict[i]) )

Submission status: Wrong Answer

Solution code:
cnt_dict = { key:0 for key in "abcdefghijklmnopqrstuvwxyz"}
string = ""
while True:
    try:
        string += input().lower()
    except EOFError:
        break
for i in string:
    if i == " " or i == ".": continue
    cnt_dict[i] += 1
for i in cnt_dict:
    print( i + " : " + str(cnt_dict[i]) )

Submission status: Wrong Answer

Solution code:
cnt_dict = { key:0 for key in "abcdefghijklmnopqrstuvwxyz"}
string = ""
while True:
    try:
        string += input().lower()
    except EOFError:
        break
for i in string:
    if  "a" <= i <= "z":
        cnt_dict[i] += 1
for i in cnt_dict:
    print( i + " : " + str(cnt_dict[i]) )

Submission status: Wrong Answer

Solution code:
alpha = "abcdefghijklmnopqrstuvwxyz"
cnt_dict = { key:0 for key in alpha}
string = ""
while True:
    try:
        string += input().lower()
    except EOFError:
        break
for i in string:
    if  i in alpha:
        cnt_dict[i] += 1
for i in cnt_dict:
    print( i + " : " + str(cnt_dict[i]) )

Submission status: Wrong Answer

Solution code:
import sys
alpha = "abcdefghijklmnopqrstuvwxyz"
cnt_dict = { key:0 for key in alpha}
string = sys.stdin.read()
for i in string:
    if  i in alpha:
        cnt_dict[i] += 1
for i in cnt_dict:
    print( i + " : " + str(cnt_dict[i]) )

Submission status: Wrong Answer

Solution code:
import sys
alpha = "abcdefghijklmnopqrstuvwxyz"
cnt_dict = { key:0 for key in alpha}
string = sys.stdin.read().lower()
for i in string:
    if  i in alpha:
        cnt_dict[i] += 1
for i in cnt_dict:
    print( i + " : " + str(cnt_dict[i]) )

Submission status: Wrong Answer

Solution code:
import sys
alpha = "abcdefghijklmnopqrstuvwxyz"
cnt_dict = { key:0 for key in alpha}
string = sys.stdin.read().lower()
for i in string:
    if  i in alpha:
        cnt_dict[i] += 1
for i in cnt_dict:
    print("{0} : {1}".format(i, str(cnt_dict[i])))

Submission status: Wrong Answer

Solution code:
number_of_letter={'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}

letters=input()
number_of_letter['a']=letters.count('a')
number_of_letter['b']=letters.count('b')
number_of_letter['c']=letters.count('c')
number_of_letter['d']=letters.count('d')
number_of_letter['e']=letters.count('e')
number_of_letter['f']=letters.count('f')
number_of_letter['g']=letters.count('g')
number_of_letter['h']=letters.count('h')
number_of_letter['i']=letters.count('i')
number_of_letter['j']=letters.count('j')
number_of_letter['k']=letters.count('k')
number_of_letter['l']=letters.count('l')
number_of_letter['m']=letters.count('m')
number_of_letter['n']=letters.count('n')
number_of_letter['o']=letters.count('o')
number_of_letter['p']=letters.count('p')
number_of_letter['q']=letters.count('q')
number_of_letter['r']=letters.count('r')
number_of_letter['s']=letters.count('s')
number_of_letter['t']=letters.count('t')
number_of_letter['u']=letters.count('u')
number_of_letter['v']=letters.count('v')
number_of_letter['w']=letters.count('w')
number_of_letter['x']=letters.count('x')
number_of_letter['y']=letters.count('y')
number_of_letter['z']=letters.count('z')

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

Submission status: Wrong Answer

Solution code:
number_of_letter={'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}

letters=input()
letters=letters.lower()
number_of_letter['a']=letters.count('a')
number_of_letter['b']=letters.count('b')
number_of_letter['c']=letters.count('c')
number_of_letter['d']=letters.count('d')
number_of_letter['e']=letters.count('e')
number_of_letter['f']=letters.count('f')
number_of_letter['g']=letters.count('g')
number_of_letter['h']=letters.count('h')
number_of_letter['i']=letters.count('i')
number_of_letter['j']=letters.count('j')
number_of_letter['k']=letters.count('k')
number_of_letter['l']=letters.count('l')
number_of_letter['m']=letters.count('m')
number_of_letter['n']=letters.count('n')
number_of_letter['o']=letters.count('o')
number_of_letter['p']=letters.count('p')
number_of_letter['q']=letters.count('q')
number_of_letter['r']=letters.count('r')
number_of_letter['s']=letters.count('s')
number_of_letter['t']=letters.count('t')
number_of_letter['u']=letters.count('u')
number_of_letter['v']=letters.count('v')
number_of_letter['w']=letters.count('w')
number_of_letter['x']=letters.count('x')
number_of_letter['y']=letters.count('y')
number_of_letter['z']=letters.count('z')

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

Submission status: Wrong Answer

Solution code:
a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
s=list(input().upper())
for i in s:
    if i=='A':
        a[0]+=1
    elif i=='B':
        a[1]+=1
    elif i=='C':
        a[2]+=1
    elif i=='D':
        a[3]+=1
    elif i=='E':
        a[4]+=1
    elif i=='F':
        a[5]+=1
    elif i=='G':
        a[6]+=1
    elif i=='H':
        a[7]+=1
    elif i=='I':
        a[8]+=1
    elif i=='J':
        a[9]+=1
    elif i=='K':
        a[10]+=1
    elif i=='L':
        a[11]+=1
    elif i=='M':
        a[12]+=1
    elif i=='N':
        a[13]+=1
    elif i=='O':
        a[14]+=1
    elif i=='P':
        a[15]+=1
    elif i=='Q':
        a[16]+=1
    elif i=='R':
        a[17]+=1
    elif i=='S':
        a[18]+=1
    elif i=='T':
        a[19]+=1
    elif i=='U':
        a[20]+=1
    elif i=='V':
        a[21]+=1
    elif i=='W':
        a[22]+=1
    elif i=='X':
        a[23]+=1
    elif i=='Y':
        a[24]+=1
    elif i=='Z':
        a[25]+=1 
for i in range(26):
    print(w[i:i+1], ':', str(a[i]))

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
import sys
s = sys.stdin.read()
for c in ([chr(i) for i in range(97,97+26)] +[chr(i) for i in range(65,65+26)]):
    print('%s : %d' %(c, s.count(c)))

Submission status: Wrong Answer

Solution code:
import sys
s = sys.stdin.read()
for c in [chr(i) for i in range(97,97+26)] +[chr(i) for i in range(65,65+26)]:
    print('%s : %d' %(c, s.count(c)))

Submission status: Wrong Answer

Solution code:
import sys
s = sys.stdin.read()
for i in range(97,97+26):
    print('%s : %d' %(chr(i), s.count(chr(i))))
for i in range(65,65+26):
    print('%s : %d' %(chr(i), s.count(chr(i))))

Submission status: Wrong Answer

Solution code:
import sys

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

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

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

for (key, val) in enumerate(ans):
  print(key ," : " , val)

Submission status: Wrong Answer

Solution code:
import sys

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

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

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

for (key, val) in enumerate(ans):
  print(key ," : " , val)

Submission status: Wrong Answer

Solution code:
import sys

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

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

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

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

Submission status: Wrong Answer

Solution code:
import sys

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

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: Wrong Answer

Solution code:
from collections import Counter

string = raw_input().lower()
counter = Counter(string)

for k in sorted(counter.keys()):
    if k.isalpha():
        print "{} : {}".format(k, counter[k])

Submission status: Wrong Answer

Solution code:
counter = {k: 0 for k in  [chr(i) for i in range(ord('a'), ord('z')+1)]}
for i in raw_input().lower():
    if i in counter.keys():
        counter[i] += 1
for k in sorted(counter.keys()):
    print "{} : {}".format(k,counter[k])

Submission status: Wrong Answer

Solution code:
import sys

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

for line in sys.stdin:
    for i in line:
        if i in counter.keys():
            counter[i] += 1
for k in sorted(counter.keys()):
    print "{} : {}".format(k,counter[k])

Submission status: Wrong Answer

Solution code:
import sys

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

while True:
    try:
        line = raw_input()
    except:
        break
    for i in line:
        if i in counter.keys():
            counter[i] += 1
for k in sorted(counter.keys()):
    print "{} : {}".format(k,counter[k])

Submission status: Wrong Answer

Solution code:
alpha = (chr(i) for i in range(97, 97+26))
l = list(input().lower())
count = {a:l.count(a) for a in alpha}
for k in sorted(count):
    print('%c : %i' % (k, count[k]))

Submission status: Wrong Answer

Solution code:
alpha = (chr(i) for i in range(97, 97+26))
while True:
    l = list(input().lower())
    if l:
        break
count = {a:l.count(a) for a in alpha}
for k in sorted(count):
    print('%c : %i' % (k, count[k]))

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
def main():
    S = list(input())
    
    Uc = [chr(i) for i in range(65, 65 + 26)] #UpperCase
    Lc = [chr(i) for i in range(97, 97 + 26)] #LowerCase

    alp = [0] * 26
    for x in range(len(S)):
        if S[x] in Uc:
            alp[Uc.index(S[x])] += 1
        elif S[x] in Lc:
            alp[Lc.index(S[x])] += 1
        else:
            pass

    for x in range(26):
        print(Lc[x], ":", alp[x])


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
chars = raw_input()
low_chars = chars.lower()
print low_chars

alphabet = "abcdefghijklmnopqrstuvwxyz"

for c in alphabet:
	cnt = low_chars.count(c)
	print("{:} : {:}".format(c, cnt))

Submission status: Wrong Answer

Solution code:
chars = raw_input()
low_chars = chars.lower()
#print low_chars

alphabet = "abcdefghijklmnopqrstuvwxyz"

for c in alphabet:
	cnt = low_chars.count(c)
	print("{:} : {:}".format(c, cnt))

Submission status: Wrong Answer

Solution code:
def main():

    input_string = input()
    lower_string = input_string.lower()
    for _letter in "abcdefghijklmnopqrstuvwxyz":
        print('%s : %s' % (_letter, lower_string.count(_letter)))
    
main()

Submission status: Wrong Answer

Solution code:
a=ord('a')
rdif=range(ord('z')-a+1)
l=[0 for _ in rdif]
s=input().lower()
for i in range(len(s)):
    if s[i].isalpha(): l[ord(s[i])-a]+=1
for i in rdif:
    print(chr(i+a),':',l[i])

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_8_C&lang=jp

"""
import sys
from sys import stdin
from collections import defaultdict
input = stdin.readline


def main(args):
    word = defaultdict(int)
    for line in sys.stdin:
        line = line.strip()
        for c in line:
            if c.isalpha():
                c = c.lower()
                word[c] += 1

    for c in 'abcdefghijklmnopqrstuvexyz':
        print('{} : {}'.format(c, word[c]))


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Wrong Answer

Solution code:
alpha = 'abcdefghijklmnopqrstuvwxyz'
m = {k:0 for k in alpha}

for s in input():
    s = s.lower()
    if s in m:
        m[s] += 1

for s in alpha:
    print('%s : %d' % (s, m[s]))

Submission status: Wrong Answer

Solution code:
alpha = 'abcdefghijklmnopqrstuvwxyz'
m = {k:0 for k in alpha}

while True:
    line = input()
    for s in line:
        s = s.lower()
        if s in m:
            m[s] += 1
    if not line.endswith("\n"):
        break
    
for s in alpha:
    print('%s : %d' % (s, m[s]))

Submission status: Wrong Answer

Solution code:
# Belongs to : midandfeed aka asilentvoice
import string
s = str(input()).lower()
alphabet = string.ascii_lowercase
ans = [0]*26
for x in s:	
	if x in alphabet:
		ans[ ord(x)-ord('a') ] += 1
	
for i in range(len(ans)):
	print("{} : {}".format(chr(i+ord('a')), ans[i]))

Submission status: Wrong Answer

Solution code:
# Belongs to : midandfeed aka asilentvoice
import string
while(1):
	try:
		s = str(input()).lower()
		alphabet = string.ascii_lowercase
		ans = [0]*26
		for x in s:	
			if x in alphabet:
				ans[ ord(x)-ord('a') ] += 1
			
		for i in range(len(ans)):
			print("{} : {}".format(chr(i+ord('a')), ans[i]))
	except:
		break

Submission status: Wrong Answer

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

def main():

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

    inputChar = list(input().lower())

    for i in inputChar:
        if(alphabetDict.get(i) == 0):
            alphabetDict[i] += 1
        else:
            continue

    print(alphabetDict)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

def main():

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

    inputChar = list(input().lower())

    for i in inputChar:
        if(alphabetDict.get(i) == 0):
            alphabetDict[i] += 1
        else:
            continue

    for i in alphabetDict.keys():
        print('%c:%d' % (i, alphabetDict[i]))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

def main():

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

    inputChar = list(input().lower())

    for i in inputChar:
        if(alphabetDict.get(i) != None):
            alphabetDict[i] += 1
        else:
            continue

    for i in alphabetDict.keys():
        print('%c:%d' % (i, alphabetDict[i]))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

def main():

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

    inputChar = list(input().lower())

    for i in inputChar:
        if(alphabetDict.get(i) != None):
            alphabetDict[i] += 1
        else:
            continue

    for i in alphabetDict.keys():
        print('%c : %d' % (i, alphabetDict[i]))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

import fileinput

def main():

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

    for line in fileinput.input():
        inputChar = list(line.lower())

    for i in inputChar:
        if(alphabetDict.get(i) != None):
            alphabetDict[i] += 1
        else:
            continue

    for i in alphabetDict.keys():
        print('%c : %d' % (i, alphabetDict[i]))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

import fileinput

def main():

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

    for line in fileinput.input():
        inputChar = list(line.lower())

        for i in inputChar:
            if(alphabetDict.get(i) != None):
                alphabetDict[i] += 1
            else:
                continue

    for i in alphabetDict.keys():
        print('%c : %d' % (i, alphabetDict[i]))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
st=input().lower()
num=[0 for i in range(26)]
for k in range(len(st)):
    if ord(st[k])<=122 and ord(st[k])>=97:
        num[ord(st[k])-97]+=1
for i in range(26):
    print("{0} : {1}".format(chr(i+97),num[i]))

Submission status: Wrong Answer

Solution code:
import string
from collections import Counter


def main():
    s = input()
    c = Counter(s.lower())

    for char in string.ascii_lowercase:
        print(char, ":", c.get(char, 0))

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
mojiretsu=input().lower()
a=mojiretsu.count('a')
b=mojiretsu.count('b')
c=mojiretsu.count('c')
d=mojiretsu.count('d')
e=mojiretsu.count('e')
f=mojiretsu.count('f')
g=mojiretsu.count('g')
h=mojiretsu.count('h')
i=mojiretsu.count('i')
j=mojiretsu.count('j')
k=mojiretsu.count('k')
l=mojiretsu.count('l')
m=mojiretsu.count('m')
n=mojiretsu.count('n')
o=mojiretsu.count('o')
p=mojiretsu.count('p')
q=mojiretsu.count('q')
r=mojiretsu.count('r')
s=mojiretsu.count('s')
t=mojiretsu.count('t')
u=mojiretsu.count('u')
v=mojiretsu.count('v')
w=mojiretsu.count('w')
x=mojiretsu.count('x')
y=mojiretsu.count('w')
z=mojiretsu.count('z')
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))
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))

Submission status: Wrong Answer

Solution code:
import sys
import string
from collections import Counter


def main():
    s = ""
    for line in sys.stdin.readline():
        s += line
    c = Counter(s.lower())

    for char in string.ascii_lowercase:
        print(char, ":", c.get(char, 0))

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
a=list(input())
[print(chr(97+i),':',a.count(chr(97+i)))for i in range(26)]

Submission status: Wrong Answer

Solution code:
a=list(input().lower())
[print(chr(97+i),':',a.count(chr(97+i)))for i in range(26)]

Submission status: Wrong Answer

Solution code:
import sys
for s in sys.stdin:[print(chr(97+i),':',list(s.lower()).count(chr(97+i)))for i in range(26)]

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
d = { chr(i): 0 for i in range(96, 123) }
s = list(input())
for i in s:
    try:
        d[i.lower()] += 1
    except:
        pass
for i,j in d.items():
    print('{} : {}'.format(i,j))

Submission status: Wrong Answer

Solution code:
d = { chr(i): 0 for i in range(96, 123) }
s = list(input())
for i in s:
    try:
        d[i.lower()] += 1
    except:
        continue
for i,j in d.items():
    print('{} : {}'.format(i,j))

Submission status: Wrong Answer

Solution code:
alpha = [chr(i) for i in range(97, 97+26)]

s = input()
t = list(s)
for i in t:
    if i.lower() in alpha:
        alpha.append(i.lower())
        
for i in alpha[:26]:
    print(str(i) + " : " + str(alpha.count(i) - 1))

Submission status: Wrong Answer

Solution code:
sente=input()
for i in range(97,123):
    print(chr(i),":",sente.count(chr(i)),sep="")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

Solution code:
while True:
    try:
        words = input()
    except:
        break    
    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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
d = { chr(i): 0 for i in range(97, 123) }
s = list(input())
for i in s:
    try:
        d[i.lower()] += 1
    except:
        continue
for i,j in d.items():
    print('{} : {}'.format(i,j))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

a = ""
for input in sys.stdin:
    a += input
for i in range(97,123):
    print "%c : %d"%(chr(i),a.count(chr(i)))

Submission status: Wrong Answer

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

alnum = ord('z') - ord('a') + 1

res = [0] * alnum

print(res)

for s in instr:
    relc = ord(s) - ord('a')
    if 0 <= relc and relc < alnum:
        res[relc] += 1

for i in range(alnum):
    print("{0} : {1}".format(chr(i + ord('a')), res[i]))

Submission status: Wrong Answer

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

alnum = ord('z') - ord('a') + 1

res = [0] * alnum

for s in instr:
    relc = ord(s) - ord('a')
    if 0 <= relc and relc < alnum:
        res[relc] += 1

for i in range(alnum):
    print("{0} : {1}".format(chr(i + ord('a')), res[i]))

Submission status: Wrong Answer

Solution code:
import sys

for line in sys.stdin:
    instr = line.lower()

    alnum = ord('z') - ord('a') + 1

    res = [0] * alnum

    for s in instr:
        if s.isalpha():
            relc = ord(s) - ord('a')
            res[relc] += 1

    for i in range(alnum):
        print("{0} : {1}".format(chr(i + ord('a')), res[i]))

Submission status: Wrong Answer

Solution code:
from collections import Counter
m = Counter(input().lower())
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i, ":", m[i])

Submission status: Wrong Answer

Solution code:
import sys
from collections import Counter
S = ""
for s in sys.stdin:
    S += s
m = Counter(S)
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i, ":", m[i])

Submission status: Wrong Answer

Solution code:
import sys
from collections import Counter
S = ""
for s in sys.stdin:
    s = s.strip()
    if not s:
        break
    S += s
m = Counter(S)
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i, ":", m[i])

Submission status: Wrong Answer

Solution code:
import sys
from collections import Counter
S = ""
for s in sys.stdin:
    s = s.strip()
    if not s:
        break
    S += s
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i, ":", S.count(i))

Submission status: Wrong Answer

Solution code:
S=input()
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')))

Submission status: Wrong Answer

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