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
S=sys.stdin.read().lower()
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')))

Submission status: Wrong Answer

Solution code:
# coding:utf-8
a = list(raw_input().lower())
dict = {}
for i in range(26):
    dict[chr(ord('a')+i)] = 0
for i in a:
    for key,value in dict.items():
        if key == i:
            dict[key] += 1
for key,value in dict.items():
    print "%s : %d" % (key,value)

Submission status: Wrong Answer

Solution code:
# coding:utf-8
a = list(raw_input().lower())
dict = {}
for i in range(26):
    dict[chr(ord('a')+i)] = 0
for i in a:
    for key,value in dict.items():
        if key == i:
            dict[key] += 1
for key,value in sorted(dict.items()):
    print "%s : %d" % (key,value)

Submission status: Wrong Answer

Solution code:
# coding:utf-8
import sys
a = []
for line in sys.stdin:
    a.append(list(line.lower()))
dict = {}
for i in range(26):
    dict[chr(ord('a')+i)] = 0
for i in a:
    for key,value in dict.items():
        if key == i:
            dict[key] += 1
for key,value in sorted(dict.items()):
    print "%s : %d" % (key,value)

Submission status: Wrong Answer

Solution code:
string = input()
hoge = { chr(x):0 for x in range(ord('a'), ord('z')+1)}
for x in string:
    if x.lower() not in hoge:
        continue
    else:
        hoge[x.lower()] += 1
for k, v in sorted(hoge.items()):
    print ('{} : {}'.format(k, v))

Submission status: Wrong Answer

Solution code:
char_list = [i for i in input().lower()]
char_dict = {i:0 for i in "abcdefghijklmnopqrstuvwxyz"}
for i in char_list:
    if i in char_dict:
        char_dict[i] += 1
for i in char_dict:
    print(i+" : {0}".format(char_dict[i]))

Submission status: Wrong Answer

Solution code:
string = input().lower()
freq = {}
for i in string:
    if i.isalpha():
        freq[i] = freq.get(i, 0) + 1

for char in range(ord('a'), ord('z')+1):
    char = chr(char)
    print('%s : %d' % (char, freq.get(char, 0)))

Submission status: Wrong Answer

Solution code:
import sys

s = sys.stdin.readline().rstrip('\r\n')

cc = ['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  = [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]

for ii in range(len(s)):
  test = s[ii].lower()
  for jj in range(len(cc)):
    if test == cc[jj]:
      c[jj] += 1

for ii in range(len(cc)):
  print(cc[ii] +  ' : ' + str(c[ii]))

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python3
# -*- coding: utf-8 -*-

import sys
import string

alphabet = string.ascii_lowercase
char_count = dict()
for c in alphabet:
    char_count[c] = 0

s = sys.stdin.readline().strip().lower()
for c in s:
    if c in alphabet:
        char_count[c] += 1

for c in alphabet:
    print(c, ':', char_count[c])

Submission status: Wrong Answer

Solution code:
string = input().lower()
strlen = len(string)

abc = [chr(i) for i in range(97, 97 + 26)]
cnt = [0 for i in range(0, 26)]

i = 0
while i < 26:
	cnt[i] = string.count(abc[i])
	print(abc[i] + " : " + str(cnt[i]))
	i += 1

Submission status: Wrong Answer

Solution code:
string = []
while 1:
	data = input().lower()
	if(data[-1] != " "):
		string += data
		break
	else:
		string += data

abc = [chr(i) for i in range(97, 97 + 26)]
cnt = [0 for i in range(0, 26)]

i = 0
while i < 26:
	cnt[i] = string.count(abc[i])
	print(abc[i] + " : " + str(cnt[i]))
	i += 1

Submission status: Wrong Answer

Solution code:
import string

alist = list(string.ascii_lowercase)
r = {}
for al in alist:
    r[al] = 0

line = input().lower()
for i in range(len(line)):
    if line[i] in r.keys():
        r[line[i]] += 1

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

Submission status: Wrong Answer

Solution code:
alist = list('abcdefghijklmnopqrstuvwxyz')
r = {}
for al in alist:
    r[al] = 0

line = input().lower()
for i in range(len(line)):
    if line[i] in r.keys():
        r[line[i]] += 1

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

Submission status: Wrong Answer

Solution code:
from __future__ import print_function
ret = [0 for x in range(0,26)]
s = filter(lambda x: 'a' <= x and x <= 'z', map(lambda x: x.lower(), raw_input()))
for v in s: ret[ord(v)-ord('a')] += 1
map(lambda i: print(chr(i+ord('a')) + " : " + str(ret[i])), range(len(ret)))

Submission status: Wrong Answer

Solution code:
import sys

cs = {c: 0 for c in list("abcdefghijklmnopqrstuvwxys")}

for c in list(sys.stdin.read()):
    c = c.lower()
    if c in cs.keys():
        cs[c] = cs[c] + 1

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

Submission status: Wrong Answer

Solution code:
import sys
lines = sys.stdin.readlines()
for line in lines:
    line = line.lower()
    cnt = [0 for i in range(26)]
    alph = [chr(ord('a') + i) for i in range(26)]
    for idx, i in enumerate(alph):
        for k in line:
            if i == k:
                cnt[idx] += 1
    for idx, i in enumerate(alph):
        print("{0} : {1}".format(i, cnt[idx]))

Submission status: Wrong Answer

Solution code:
letters = 'abcdefghijklmnopqrstuvwxyz'
s = input()
for i in range(26) :
    print(letters[i] + ' : %d' % s.count(letters[i]))

Submission status: Wrong Answer

Solution code:
letters = 'abcdefghijklmnopqrstuvwxyz'
s = input()
for i in range(26) :
    print(letters[i] + ' : %d' % s.lower().count(letters[i]))

Submission status: Wrong Answer

Solution code:
strings = list(input().lower())

arr = []
for i in range(26):
    arr.append(0)

for i in range(len(strings)):
    if ord(strings[i]) >= 97 and ord(strings[i]) <= 122:
        arr[ord(strings[i]) - 97] += 1

for i in range(97,123):
    print(chr(i) + " : "  + str(arr[i - 97]))

Submission status: Wrong Answer

Solution code:
import string
from collections import Counter


def count(s):
    """Count the occurence of each alphabet chars.
    The count is done case insensitively.

    >>> count('A:a b')  # doctest: +NORMALIZE_WHITESPACE
    Counter({'a': 2, 'b': 1})
    """
    return Counter([c for c in s.lower() if c.isalpha()])


def run():
    s = input()
    c = count(s)

    for a in string.ascii_lowercase:
        print(a, ':', c[a])


if __name__ == '__main__':
    run()

Submission status: Wrong Answer

Solution code:
s = input()
small = 'abcdefghijklmnopqrstuvwxyz'
large = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ans = ''
count = [0] * 26
for i in s:
    q = 0
    while q < 26:
        if i == small[q] or i == large[q]:
            count[q] += 1
            break
        q += 1
j = 0
while j < 26:
    ans += small[j] + ' : ' + str(count[j]) + '\n'
    j += 1
print(ans[:-1])

Submission status: Wrong Answer

Solution code:
#coding: utf-8

c = [0 for i in range(26)]
s = input()

for i in range(len(s)):
    if   ord(s[i]) >= ord('a') and ord(s[i]) <= ord('z'):
        c[ord(s[i])-97] += 1
    elif ord(s[i]) >= ord('A') and ord(s[i]) <= ord('Z'):
        c[ord(s[i])-65] += 1

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

Submission status: Wrong Answer

Solution code:
def main():
    s = list(input())

    A = [chr(i) for i in range(97, 97 + 26)]
    B = [chr(i) for i in range(65, 65 + 26)]
    C = [0] * 26

    for i in range(len(s)):
        if s[i] in A:
            C[A.index(s[i])] += 1
        if s[i] in B: 
            C[B.index(s[i])] += 1
    
    for i in range(len(C)):
        print(A[i], ":", C[i])

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
s = input()
l = [chr(i) for i in range(97, 97+26)]
for a in l:
  print("{0}: {1}".format(a, s.count(a)))

Submission status: Wrong Answer

Solution code:
s = input()
l = [chr(i) for i in range(97, 97+26)]
for a in l:
  print("{0} : {1}".format(a, s.count(a)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
dict = {chr(i): 0 for i in range(97, 97+26)}
while 1:
  try:
    s = input().lower()
    for a in dict.keys():
      dict[a] += s.count(a)
  except:
    print(dict)
    break;

Submission status: Wrong Answer

Solution code:
import string

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

first_input = input().lower()

for x in first_input:
    if x in result:
        result[x] += 1

for key, value in result.items():
    print('{key} : {value}'.format(key=key, value=value))

Submission status: Wrong Answer

Solution code:
import string
import sys

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

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

print(first_input)

for x in first_input:
    if x in result:
        result[x] += 1

for key, value in result.items():
    print('{key} : {value}'.format(key=key, value=value))

Submission status: Wrong Answer

Solution code:
import string
import sys

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

lines = []

for line in sys.stdin:
    lines.append(line)

for x in lines:
    if x in result:
        result[x] += 1

for key, value in result.items():
    print('{key} : {value}'.format(key=key, value=value))

Submission status: Wrong Answer

Solution code:
import string
import sys

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

lines = []
after_join = ''.join(lines).lower()

for line in sys.stdin:
    lines.append(line)

for x in after_join:
    if x in result:
        result[x] += 1

for key, value in result.items():
    print('{key} : {value}'.format(key=key, value=value))

Submission status: Wrong Answer

Solution code:
import string as st
s = list(input())
for i in range(len(st.ascii_lowercase)):
    print("{} : {}".format(st.ascii_lowercase[i],s.count(st.ascii_lowercase[i])))

Submission status: Wrong Answer

Solution code:
import string as st
s = input()
s  = list(s.lower())
for i in range(len(st.ascii_lowercase)):
    print("{} : {}".format(st.ascii_lowercase[i],s.count(st.ascii_lowercase[i])))

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
a = list(str(input()))
count = [0] * 26
for i in range(len(a)):
    if 97 <= ord(a[i]) and ord(a[i]) < 123:
        count[ord(a[i]) - 97] += 1
for i in range(26):
    print(chr(i + 97) + ' : ' + str(count[i]))

Submission status: Wrong Answer

Solution code:
def lower(word):
    Word = ''
    str = list(word)
    for i in range(len(str)):
        if str[i].isupper(): Word += str[i].lower()
        else: Word += str[i]
    return Word

a = list(str(input()))
count = [0] * 26
for i in range(len(a)):
    a[i] = lower(a[i])
    if 97 <= ord(a[i]) and ord(a[i]) < 123:
        count[ord(a[i]) - 97] += 1
for i in range(26):
    print(chr(i + 97) + ' : ' + str(count[i]))

Submission status: Wrong Answer

Solution code:
import sys
def lower(word):
    Word = ''
    str = list(word)
    for i in range(len(str)):
        if str[i].isupper(): Word += str[i].lower()
        else: Word += str[i]
    return Word
for line in sys.stdin:
    a = list(line)

count = [0] * 26
for i in range(len(a)):
    a[i] = lower(a[i])
    if 97 <= ord(a[i]) and ord(a[i]) < 123:
        count[ord(a[i]) - 97] += 1
for i in range(26):
    print(chr(i + 97) + ' : ' + str(count[i]))

Submission status: Wrong Answer

Solution code:
def lower(word):
    Word = ''
    str = list(word)
    for i in range(len(str)):
        if str[i].isupper(): Word += str[i].lower()
        else: Word += str[i]
    return Word
a = []
while True:
    try:
        a.exppend(list(input()))
    except:
        break

count = [0] * 26
for i in range(len(a)):
    a[i] = lower(a[i])
    if 97 <= ord(a[i]) and ord(a[i]) < 123:
        count[ord(a[i]) - 97] += 1
for i in range(26):
    print(chr(i + 97) + ' : ' + str(count[i]))

Submission status: Wrong Answer

Solution code:
import sys
def lower(word):
    Word = ''
    str = list(word)
    for i in range(len(str)):
        if str[i].isupper(): Word += str[i].lower()
        else: Word += str[i]
    return Word
a = []
for line in sys.stdin:
    a.extend(list(line))
    print(a)

count = [0] * 26
for i in range(len(a)):
    a[i] = lower(a[i])
    if 97 <= ord(a[i]) and ord(a[i]) < 123:
        count[ord(a[i]) - 97] += 1
for i in range(26):
    print(chr(i + 97) + ' : ' + str(count[i]))

Submission status: Wrong Answer

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

Solution code:
A = input().lower()
Dir = {
'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
}
for a in A:
	if a in Dir:
		Dir[a] += 1
for i in Dir:
	print(i,':',Dir[i])

Submission status: Wrong Answer

Solution code:
s = input()
cnt = dict()

for c in s:
    if c.isalpha():
        cl = c.lower()
        if cl in cnt:
            cnt[cl] += 1
        else:
            cnt[cl] = 1

for i in range(97, 97 + 26):
    c = chr(i)
    if not c in cnt:
        cnt[c] = 0
    print("{0} : {1}".format(c, cnt[c]))

Submission status: Wrong Answer

Solution code:
import sys

cnt = dict()

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

for i in range(97, 97 + 26):
    c = chr(i)
    print("{0} : {1}".format(c, cnt.get(c, 0)))

Submission status: Wrong Answer

Solution code:
import sys

cnt = {}

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

for i in range(97, 97 + 26):
    c = chr(i)
    print("{0} : {1}".format(c, cnt.get(c, 0)))

Submission status: Wrong Answer

Solution code:
import sys

cnt = {}

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

for i in range(97, 97 + 26):
    c = chr(i)
    print("{0} : {1}".format(c, cnt.get(c, 0)))

Submission status: Wrong Answer

Solution code:
li=list(input())
sa=0
sb=0
sc=0
sd=0
se=0
sf=0
sg=0
sh=0
si=0
sj=0
sk=0
sl=0
sm=0
sn=0
so=0
sp=0
sq=0
sr=0
ss=0
st=0
su=0
sv=0
sw=0
sx=0
sy=0
sz=0

for lis in li:
    if lis=="a" or lis=="A":
        sa+=1
    elif lis=="b" or lis=="B":
        sb+=1
    elif lis=="c" or lis=="C":
        sc+=1
    elif lis=="d" or lis=="D":
        sd+=1
    elif lis=="e" or lis=="E":
        se+=1
    elif lis=="f" or lis=="F":
        sf+=1
    elif lis=="g" or lis=="G":
        sg+=1
    elif lis=="h" or lis=="H":
        sh+=1
    elif lis=="i" or lis=="I":
        si+=1
    elif lis=="j" or lis=="J":
        sj+=1
    elif lis=="k" or lis=="K":
        sk+=1
    elif lis=="l" or lis=="L":
        sl+=1
    elif lis=="m" or lis=="M":
        sm+=1
    elif lis=="n" or lis=="N":
        sn+=1
    elif lis=="o" or lis=="O":
        so+=1
    elif lis=="p" or lis=="P":
        sp+=1
    elif lis=="q" or lis=="Q":
        sq+=1
    elif lis=="r" or lis=="R":
        sr+=1
    elif lis=="s" or lis=="S":
        ss+=1
    elif lis=="t" or lis=="T":
        st+=1
    elif lis=="u" or lis=="U":
        su+=1
    elif lis=="v" or lis=="V":
        sv+=1
    elif lis=="w" or lis=="W":
        sw+=1
    elif lis=="x" or lis=="X":
        sx+=1
    elif lis=="y" or lis=="Y":
        sy+=1
    elif lis=="z" or lis=="Z":
        sz+=1
    else:
        pass

print("a : "+str(sa))
print("b : "+str(sb))
print("c : "+str(sc))
print("d : "+str(sd))
print("e : "+str(se))
print("f : "+str(sf))
print("g : "+str(sg))
print("h : "+str(sh))
print("i : "+str(si))
print("j : "+str(sj))
print("k : "+str(sk))
print("l : "+str(sl))
print("m : "+str(sm))
print("n : "+str(sn))
print("o : "+str(so))
print("p : "+str(sp))
print("q : "+str(sq))
print("r : "+str(sr))
print("s : "+str(ss))
print("t : "+str(st))
print("u : "+str(su))
print("v : "+str(sv))
print("w : "+str(sw))
print("x : "+str(sx))
print("y : "+str(sy))
print("z : "+str(sz))

Submission status: Wrong Answer

Solution code:
li=list(input())
sa=0
sb=0
sc=0
sd=0
se=0
sf=0
sg=0
sh=0
si=0
sj=0
sk=0
sl=0
sm=0
sn=0
so=0
sp=0
sq=0
sr=0
ss=0
st=0
su=0
sv=0
sw=0
sx=0
sy=0
sz=0

for lis in li:
    if lis=="a" or lis=="A":
        sa+=1
    elif lis=="b" or lis=="B":
        sb+=1
    elif lis=="c" or lis=="C":
        sc+=1
    elif lis=="d" or lis=="D":
        sd+=1
    elif lis=="e" or lis=="E":
        se+=1
    elif lis=="f" or lis=="F":
        sf+=1
    elif lis=="g" or lis=="G":
        sg+=1
    elif lis=="h" or lis=="H":
        sh+=1
    elif lis=="i" or lis=="I":
        si+=1
    elif lis=="j" or lis=="J":
        sj+=1
    elif lis=="k" or lis=="K":
        sk+=1
    elif lis=="l" or lis=="L":
        sl+=1
    elif lis=="m" or lis=="M":
        sm+=1
    elif lis=="n" or lis=="N":
        sn+=1
    elif lis=="o" or lis=="O":
        so+=1
    elif lis=="p" or lis=="P":
        sp+=1
    elif lis=="q" or lis=="Q":
        sq+=1
    elif lis=="r" or lis=="R":
        sr+=1
    elif lis=="s" or lis=="S":
        ss+=1
    elif lis=="t" or lis=="T":
        st+=1
    elif lis=="u" or lis=="U":
        su+=1
    elif lis=="v" or lis=="V":
        sv+=1
    elif lis=="w" or lis=="W":
        sw+=1
    elif lis=="x" or lis=="X":
        sx+=1
    elif lis=="y" or lis=="Y":
        sy+=1
    elif lis=="z" or lis=="Z":
        sz+=1
    else:
        pass

print("a : "+str(sa))
print("b : "+str(sb))
print("c : "+str(sc))
print("d : "+str(sd))
print("e : "+str(se))
print("f : "+str(sf))
print("g : "+str(sg))
print("h : "+str(sh))
print("i : "+str(si))
print("j : "+str(sj))
print("k : "+str(sk))
print("l : "+str(sl))
print("m : "+str(sm))
print("n : "+str(sn))
print("o : "+str(so))
print("p : "+str(sp))
print("q : "+str(sq))
print("r : "+str(sr))
print("s : "+str(ss))
print("t : "+str(st))
print("u : "+str(su))
print("v : "+str(sv))
print("w : "+str(sw))
print("x : "+str(sx))
print("y : "+str(sy))
print("z : "+str(sz))

Submission status: Wrong Answer

Solution code:
s=input().lower()
str=list(s)
for i in range(97,97+26):
    count=0
    for j in str:
        if chr(i)==j:
            count+=1
    print(chr(i),':',count)

Submission status: Wrong Answer

Solution code:
table = "abcdefghijklmnopqrstuvwxyz"
sentence = ''

sentence += str(input().lower())

for i in table:
    print(i + " : " + str(sentence.count(i)))

Submission status: Wrong Answer

Solution code:
import sys
table = "abcdefghijklmnopqrstuvwxyz"
sentence = ''
for line in sys.stdin:
    sentence += line

for i in table:
    print(i + " : " + str(sentence.count(i)))

Submission status: Wrong Answer

Solution code:
import sys
table = "abcdefghijklmnopqrstuvwxyz"
sentence = []
for line in sys.stdin:
    sentence += line

for i in table:
    print(i + " : " + str(sentence.count(i)))

Submission status: Wrong Answer

Solution code:
keys = [chr(i) for i in range(97, 97+26)]
d = {}

for i in keys:
    d[i] = 0
    
for word in input().replace(' ','').replace('.','').lower():
    d[word] += 1
for k, v in sorted(d.items()):
    print('{} : {}'.format(k,v))

Submission status: Wrong Answer

Solution code:
keys = [chr(i) for i in range(97, 97+26)]
d = {}

for i in keys:
    d[i] = 0
    
while True:
    try:
        for word in input().replace(' ','').replace('.','').lower():
            d[word] += 1
        for k, v in sorted(d.items()):
            print('{} : {}'.format(k,v))
    except:
        break

Submission status: Wrong Answer

Solution code:
import string
sen = input().lower()

char_dic = {i:0 for i in string.ascii_lowercase}

for j in sen:
    if j in char_dic:
        char_dic[j] += 1

for k in string.ascii_lowercase:
    print("{} : {}".format(k, char_dic[k]))

Submission status: Wrong Answer

Solution code:
d = {}

se = input().lower()

for i in se:
    if i.isalpha():
        d[i] = d.get(i, 0) + 1
for i in 'abcdefghijklmnopqrstuvwxyz':
    d[i] = d.get(i, 0)
    print("{} : {}".format(i, d[i]))

Submission status: Wrong Answer

Solution code:
str=input().lower().split()
print(str)
s=''.join(str)
print(s)
for i in range(97, 97 + 26):
    count = 0
    for j in s:
        if chr(i) == j:
            count += 1
    print(chr(i), ':', count)

Submission status: Wrong Answer

Solution code:
str=input().lower().split()
s=''.join(str)
for i in range(97, 97 + 26):
    count = 0
    for j in s:
        if chr(i) == j:
            count += 1
    print(chr(i), ':', count)

Submission status: Wrong Answer

Solution code:
count = [0 for _ in range(ord("a"), ord("z") + 1)]
for c in list(input().lower()):
    if "a" <= c <= "z":
        count[ord(c) - ord("a")] += 1
for i, n in enumerate(count):
    print("{ch} : {cnt}".format(ch = chr(ord("a") + i), cnt = n))

Submission status: Wrong Answer

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

Solution code:
a_dict = {chr(a): 0 for a in range(97, 123)}
S = input().lower()
'''if not S:
    break'''
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: Wrong Answer

Solution code:
# AOJ ITP1_8_C

def numinput():
    a = input().split()
    for i in range(len(a)):
        a[i] = int(a[i])
    return a

def main():
    counts = []
    for i in range(26): counts.append(0)
    string = input()
    for c in string:
        if 97 <= ord(c) <= 122:
            counts[ord(c) - 97] += 1
        elif 65 <= ord(c) <= 90:
            counts[ord(c) - 65] += 1
    for i in range(26):
        print(chr(97 + i) + " : " + str(counts[i]))

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
s = str(input())

counts = [0] * 26
for c in s:
	o = ord(c)
	if o >= 65 and o <= 90:
		counts[o - 65] += 1
	elif o >= 97 and o <= 122:
		counts[o - 97] += 1
	
for i in range(len(counts)):
	print(chr(i + 97) + ' : ' + str(counts[i]))

Submission status: Wrong Answer

Solution code:
s = input().lower()
d = dict()
for c in "abcdefghijklmnopqrstuvwxyz":
    d[c] = 0
for c in s:
    if c in "abcdefghijklmnopqrstuvwxyz":
        d[c] += 1
for c in "abcdefghijklmnopqrstuvwxyz":
    print(f"{c} : {d[c]}")

Submission status: Wrong Answer

Solution code:
text = input()

counter = {}

for a in text:
    a = a.lower()
    counter[a] = counter.get(a,0) + 1

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

Submission status: Wrong Answer

Solution code:
text = input()

counter = {}

for a in text:
    a = a.lower()
    counter[a] = counter.get(a,0) + 1

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

Submission status: Wrong Answer

Solution code:
for text in input():
    counter = {}

    for a in text:
        a = a.lower()
        counter[a] = counter.get(a,0) + 1

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

Submission status: Wrong Answer

Solution code:
a = [chr(i) for i in range(97,97+26)]
b = list(input())
for x in a:
    count = 0
    for y in b:
        if y == x:
            count += 1
    print(f"{x} : {str(count)}")

Submission status: Wrong Answer

Solution code:
a = [chr(i) for i in range(97,97+26)]
b = list(input().lower())
for x in a:
    count = 0
    for y in b:
        if y == x:
            count += 1
    print(f"{x} : {str(count)}")

Submission status: Wrong Answer

Solution code:
text = input()
count = [0]*26
for letter in text:
    i = ord(letter)
    if i < 64:
        continue
    else:
        i %= 32
    if i:
        count[i-1] = count[i-1] + 1

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

Submission status: Wrong Answer

Solution code:
# Counting Characters

charList = list('abcdefghijklmnopqrstuvwxyz')
sentence = list(input().rstrip())
print(sentence)

for char in charList:
    count = 0
    for i in range(len(sentence)):
        if sentence[i] == char:
            count += 1
    print(char + ' : ' + str(count))

Submission status: Wrong Answer

Solution code:
# Counting Characters

charList = list('abcdefghijklmnopqrstuvwxyz')
sentence = list(input().rstrip().lower())
print(sentence)

for char in charList:
    count = 0
    for i in range(len(sentence)):
        if sentence[i] == char:
            count += 1
    print(char + ' : ' + str(count))

Submission status: Wrong Answer

Solution code:
# Counting Characters

charList = list('abcdefghijklmnopqrstuvwxyz')
sentence = list(input().rstrip().lower())
# print(sentence)

for char in charList:
    count = 0
    for i in range(len(sentence)):
        if sentence[i] == char:
            count += 1
    print(char + ' : ' + str(count))

Submission status: Wrong Answer

Solution code:
# Counting Characters
import sys

charList = list('abcdefghijklmnopqrstuvwxyz')
lines = sys.stdin.readlines()
combinedLine = ""
for line in lines:
    line = line.strip("\n")
    combinedLine += line
totalSentence = list(combinedLine)

for char in charList:
    count = 0
    for i in range(len(totalSentence)):
        if totalSentence[i] == char:
            count += 1
    print(char + ' : ' + str(count))

Submission status: Wrong Answer

Solution code:
# Counting Characters
import sys

charList = list('abcdefghijklmnopqrstuvwxyz')
lines = sys.stdin.readlines()
combinedLine = ""
for line in lines:
    line = line.strip("\n")
    combinedLine += line
totalSentence = list(combinedLine)
# print(totalSentence)

for char in charList:
    count = 0
    for i in range(len(totalSentence)):
        if totalSentence[i] == char:
            count += 1
    print(char + ' : ' + str(count))

Submission status: Wrong Answer

Solution code:
s = input().strip().lower()
[print(i+" : "+str(s.count(i))) for i in "abcdefghijklmnopqrstuvwxyz"]

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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]))

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    alphabetical_table = {}
    for i in range(ord("a"),ord("z")+1):
        alphabetical_table[chr(i)] = 0
    
    #while True:
    input_word = input()
    #if not input_word:
        #break
    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: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
if __name__ == "__main__":
    #while True:

    #if not input_word:
    #    break
    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] += 1
            
    for tp in alphabetical_table.items():
        print(tp[0] + " : " + str(tp[1]))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
if __name__ == "__main__":
    #while True:

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

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