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: Accepted

Solution code:
import string
data = {}
while True:
    try:
        in_str = raw_input()
        for c in in_str:
            if c.isalpha() == False or c.lower() < 'a' and 'z' < c.lower():
                continue
            if c.lower() in data:
                data[c.lower()] += 1
            else:
                data[c.lower()] = 1
    except(EOFError):
        break
for c in string.lowercase[:26]:
    if c in data:
        print c + ' : ' + str(data[c])
    else:
        print c + ' : 0'

Submission status: Accepted

Solution code:
from collections import Counter

counter = Counter()

while True:
    try:
        s = input()
        for c in s:
            counter[c.lower()] += 1

    except:
        break

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

Submission status: Accepted

Solution code:
def get_input():
    while True:
        try:
            yield ''.join(raw_input().strip())
        except EOFError:
            break
inlist = list(get_input())
instr = "".join(inlist)
instr = instr.lower()
ascstart = 97
ascfin = 122
strlist = [0 for i in xrange(97,122+1)]
# print len(strlist)
for x in xrange(len(instr)):
    if ord(instr[x]) < ascstart or ord(instr[x]) > ascfin:
        continue
    strlist[ord(instr[x])-ascstart] +=1

for x in xrange(ascstart,ascfin+1):
    print "%s : %d" % (chr(x),strlist[x-ascstart])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

s = str()
alphabet = "abcdefghijklmnopqrstuvwxyz"

for line in sys.stdin:
    s += line.lower()

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

Submission status: Accepted

Solution code:
# coding: utf-8

import sys

# ??¢??????????????????????????£????????§???????????????
alphabet_list = [chr(i) for i in range(97, 97+26)]
alphabet_dict = {}
for a in alphabet_list:
    alphabet_dict.update({a:0})

for strings in sys.stdin:
    for s in strings:
        if (s.isalpha()):
            s = s.lower()
            alphabet_dict[s] += 1

for key in sorted(alphabet_dict.keys()):
    print(str(key) + ' : '+ str(alphabet_dict[key]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import string

sentence = sys.stdin.read().lower()
for c in string.ascii_lowercase:
    print('{} : {}'.format(c, sentence.count(c)))

Submission status: Accepted

Solution code:
import sys

printf = sys.stdout.write


abc = []
ans = [0 for i in range(26)]

for i in range(26):
    abc.append(str(chr(i + 97)))


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

for i in range(len(word)):
    for j in range(len(word[i])):
        for k in range(29):
            if (k + 65) == ord(word[i][j]) or (k + 97) == ord(word[i][j]): 
                ans[k] += 1

for i in range(26):
    printf(abc[i] + " : " + str(ans[i]) + "\n")

Submission status: Accepted

Solution code:
import sys
s = str()
alphabet = "abcdefghijklmnopqrstuvwxyz"
for line in sys.stdin:
	s+=line.lower()
for c in alphabet:
	print(c+" : "+str(s.count(c)))

Submission status: Accepted

Solution code:
import sys
words = str()
data = "abcdefghijklmnopqrstuvwxyz"
for line in sys.stdin:
    words += line.lower()
for i in data:
    print(i+" : "+str(words.count(i)))

Submission status: Accepted

Solution code:
import sys

alphabets = range(ord('a'), ord('z') + 1)
dic = { chr(c): 0 for c in alphabets }

text = sys.stdin.read()
for c in text:
  c = c.lower()
  if ord(c) in alphabets:
    dic[c] += 1

for c, n in sorted(dic.items()):
  print(c, ":", n)

Submission status: Accepted

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

alphabet = "abcdefghijklmnopqrstuvwxyz"

for i in alphabet:

    result = s.count(i)
    print "%s : %d" %(i,result)

Submission status: Accepted

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

sen = ''
while True:
    try:
        buf = raw_input()
    except:
        break
    sen += buf.lower()
for i in range(ord('a'), ord('z')+1):
    print "%s : %d" %(chr(i), sen.count(chr(i)))

Submission status: Accepted

Solution code:
import sys
abc='abcdefghijklmnopqrstuvwxyz'
sentences = sys.stdin.read()
for letter in abc:
    print( letter + ' : ' + str(sentences.lower().count(letter)))

Submission status: Accepted

Solution code:
import sys

a = []
for line in sys.stdin:
    a.append(str(line))
a = ''.join(a).lower()

d = {}
for i in "abcdefghijklmnopqrstuvwxyz":
    d[i] = 0
for i in a:
    if i in "abcdefghijklmnopqrstuvwxyz":
        d[i] += 1
for i in "abcdefghijklmnopqrstuvwxyz":
    print i,':',d[i]

Submission status: Accepted

Solution code:
docs = ''
while True:
    try:
        s = raw_input()
    except:
        break
    docs += s.lower()
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for i in alphabet:
    print i +' : '+ str(docs.count(i))

Submission status: Accepted

Solution code:
ip=''
while True:
    try:
        p=raw_input()
    except:
        break
    ip+=p.lower()
alphabet = 'abcdefghijklmnopqrstuvwxyz'
for i in alphabet:
    print i +' : '+ str(ip.count(i))

Submission status: Accepted

Solution code:
sequence = ''
while(True):
    try:
        sequence += input()
    except EOFError:
        break

sequence = sequence.lower()
for i in range(ord('a'), ord('z')+1):
    print("%s : %d" % (chr(i), sequence.count(chr(i))))

Submission status: Accepted

Solution code:
import sys

cnt = [0 for i in xrange(26)]

for e_string in sys.stdin:

	for i in e_string:
		j = ord(i)
		if   j >= 65 and j <= 90:
			cnt[j%65] += 1
		elif j >= 97 and j <= 122:
			cnt[j%97] += 1
		else:
			continue

for i in xrange(26):
	print u"%c : %d" % (chr(97+i), cnt[i])

Submission status: Accepted

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

count = [0 for i in range(26)]
for c in text:
    if c < 'a'  or c > 'z':
        continue

    count[ord(c) - ord('a')] += 1

for i, c in enumerate(count):
    print('{0} : {1}'.format(chr(i + ord('a')), c))

Submission status: Accepted

Solution code:
sentence = ''
while True:
    try:
        sentence += input().lower()
    except:
            break

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

Submission status: Accepted

Solution code:
#   ?????????????????±??????????????????????????¢???????????????????????°?????°??????????????°??????
#   ?¨??????\??????????????????????????????

import sys
#   ???????????????????????????????????????
input_char = []
for line in sys.stdin:
    input_char.append(line)
#   ???????????????????????????
count_char = "".join(input_char)
#   print(count_char[2])
#   ????????????????????¨???????????????
countingChar = [0 for i in range(26)]
#   ??????????????¢????????????
for i in range(0, len(count_char)):
    if ord(count_char[i].lower()) - ord("a") > -1 and ord(count_char[i].lower()) - ord("a") < 27:
        countingChar[ord(count_char[i].lower()) - ord("a")] += 1
#   ??????
for i in range(0, 26):
    print("{0} : {1}".format(chr(ord("a") + i), countingChar[i]))

Submission status: Accepted

Solution code:
# 17-Character-Counting_Characters.py

# ?????????????????????
# ?????????????????±??????????????????????????¢???????????????????????°?????°??????????????°????????????????????????????????? 
# ??????????°?????????¨??§??????????????\???????????????

# Input
# ?????°????????????????????????????????±???????????????????????????
# Output
# ?????????????????±???????????????????????¢???????????????????????°?????\??????????????¢?????§????????????????????????

# a : a????????°
# b : b????????°
# c : c????????°
#   .
#   .
# z : z????????°
# Constraints
# ??±???????????????????????° < 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

import sys
 
s = str()
alphabet = "abcdefghijklmnopqrstuvwxyz"
 
for line in sys.stdin:
    s += line.lower()
    # print(list(s))

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

Submission status: Accepted

Solution code:
# 17-Character-Counting_Characters.py

# ?????????????????????
# ?????????????????±??????????????????????????¢???????????????????????°?????°??????????????°????????????????????????????????? 
# ??????????°?????????¨??§??????????????\???????????????

# Input
# ?????°????????????????????????????????±???????????????????????????
# Output
# ?????????????????±???????????????????????¢???????????????????????°?????\??????????????¢?????§????????????????????????

# a : a????????°
# b : b????????°
# c : c????????°
#   .
#   .
# z : z????????°
# Constraints
# ??±???????????????????????° < 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

import sys
 
s = str()
alphabet = "abcdefghijklmnopqrstuvwxyz"
 
for line in sys.stdin:
    s += line.lower()
    # print(list(s))

 
for c in alphabet:
    print("{} : {}".format(c, s.count(c)) )

Submission status: Accepted

Solution code:
import sys
cs = { c : 0 for c in list("abcdefghijklmnopqrstuvwxyz")}
for c in list(sys.stdin.read()):
    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: Accepted

Solution code:
alphabets = "abcdefghijklmnopqrstuvwxyz"
#print(len(alphabets))
#a = len(alphabets)
#print(a)
x = ''
while True:
    try:
        x += input().lower()
    except EOFError:
        break

for i in range(len(alphabets)):
    print("{0} : {1}".format(alphabets[i], int(x.count(alphabets[i]))))

Submission status: Accepted

Solution code:
alphabet = "abcdefghijklmnopqrstuvwxyz"
#print(len(alphabet))
#a = len(alphabet)
#print(a)
x = ''
while True:
    try:
        x += input().lower()
    except EOFError:
        break

for i in range(len(alphabet)):
    print("{0} : {1}".format(alphabet[i], int(x.count(alphabet[i]))))

Submission status: Accepted

Solution code:
import sys

InputText = ""
while True:
    try:
        InputText += input().lower()
    except:
        break

alphabet = [chr(i) for i in range(97,97+26)]
count = [0 for i in range(26)]

for i in range(len(InputText)):
    for j in range(26):
        if InputText[i] == alphabet[j]:
            count[j] = int(count[j]) + 1


for i in range(26):
    print(alphabet[i],":",count[i])

Submission status: Accepted

Solution code:
import sys
cnts = {chr(a):0 for a in range(ord('a'),ord('z')+1)}
for line in sys.stdin:
    alpha_line = [x.lower() for x in list(filter(lambda c: c.isalpha(), list(line)))]
    for a in alpha_line: cnts[a] += 1

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

Submission status: Accepted

Solution code:
import sys
import math

char = "abcdefghijklmnopqrstuvwxyz"

cnt = {}

for S in sys.stdin:
    for x in S:
        x = x.lower()
        if x not in cnt:
            cnt[x] = 0
        cnt[x] += 1
    
for c in char:
    sys.stdout.write(c + " : ")
    if c not in cnt:
        print 0
    else:
        print cnt[c]

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

s = str()
alpha = "abcdefghijklmnopqrstuvwxyz"

# for line in input() ??¨?????????????????????????????¨1?????????????????????
for line in sys.stdin:
    s += line.lower()
 
for c in alpha:
    print(c+" : "+str(s.count(c)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

alpha = [chr(i) for i in range(97,97+26)]
line = ""

for l in sys.stdin:
    line += l.lower()
    
for i in alpha:
    print("{0} : {1}".format(i, line.count(i)))

Submission status: Accepted

Solution code:
import sys
alpha = "abcdefghijklmnopqrstuvwxyz"
dic = {c:0 for c in alpha}

t = sys.stdin.read()
for s in t:
    s = s.lower()
    if s in alpha :
        dic[s] += 1

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

Submission status: Accepted

Solution code:
import fileinput

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

for line in fileinput.input():
	for char in list(line):
		c = char.lower()
		if c in dict:
			dict[c] += 1

# ?????????????????¨?????????.
for i in range(ord("a"), ord("z") + 1):
	print(chr(i), ":", dict[chr(i)])

Submission status: Accepted

Solution code:
alphabet = {chr(c):0 for c in range(ord("a"),ord("z")+1)}
s = ""
while True:
    try:
        s += input().lower()
    except:
            break

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

for key in range(ord("a"),ord("z")+1):
    ck = chr(key)
    print("%s : %d" % (ck,alphabet[ck]))

Submission status: Accepted

Solution code:
str = ''
while True:
	try:
		a = input().lower()
		str = str + a
	except EOFError:
		break

for i in 'abcdefghijklmnopqrstuvwxyz':
	print('{0} : {1}'.format(i, str.count(i)))

Submission status: Accepted

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

a = sys.stdin.readlines()
b = []

for i in a:
		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: Accepted

Solution code:
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

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

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Accepted

Solution code:
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ''

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

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Accepted

Solution code:
import string

count = {x: 0 for x in string.ascii_lowercase}
lines =''
while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key,count[key]))

Submission status: Accepted

Solution code:
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

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

for key, in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Accepted

Solution code:
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = "" 

while True:
    try:
        lines += input().lower()
    except EOFError:
        break
        
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
        
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Accepted

Solution code:
import string
 
count = {x: 0 for x in string.ascii_lowercase}
lines = ""
 
while True:
    try:
        lines += input().lower()
    except EOFError:
        break
         
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
         
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Accepted

Solution code:
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

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

for c in lines:
    if 'a' <= c <= 'z':
            count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Accepted

Solution code:
import string
  
count = {x: 0 for x in string.ascii_lowercase}
lines = ""
  
while True:
    try:
        lines += input().lower()
    except EOFError:
        break
          
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
          
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Accepted

Solution code:
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ''

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

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Accepted

Solution code:
import string
   
count = {x: 0 for x in string.ascii_lowercase}
lines = ""
   
while True:
    try:
        lines += input().lower()
    except EOFError:
        break
           
for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1
           
for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Accepted

Solution code:
import string
count = {x: 0 for x in string.ascii_lowercase}
lines = ""

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

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))

Submission status: Accepted

Solution code:
s = ""
while True:
    try:
        s += input().lower()
    except:
        break

dic = {}
orda = ord("a")
ordz = ord("z")

for c in s:
    if orda <= ord(c) <= ordz:
        try:
            dic[c] += 1
        except:
            dic[c] = 1

for i in range(orda,ordz + 1):
    c = chr(i)
    try:
        print("%s : %d" % (c, dic[c]))
    except:
        print("%s : %d" % (c, 0))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import OrderedDict
import sys

cnt = OrderedDict()
for i in range(ord('a'), ord('z') + 1):
    cnt[chr(i)] = 0

S = sys.stdin.readlines()
for s in S:
    s = s.lower()
    for i in s:
        if i in cnt:
            cnt[i] += 1

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

Submission status: Accepted

Solution code:
import sys
uppers = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
lowers = 'abcdefghijklmnopqrstuvwxyz'
s = []
for line in sys.stdin:
    s += line
for i in range(26):
    print(lowers[i] + ' : ' + str(s.count(uppers[i]) + s.count(lowers[i])))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
tset = [0] * 27
while 1:
 try:
  str = raw_input().lower()
  a = ord('a')
  for c in str:
   tset[ord(c)-a if c.islower() else 26] += 1
 except EOFError:
  for c in xrange(26):
   print "{0} : {1}".format(chr(a+c), tset[c])
  break

Submission status: Accepted

Solution code:
import sys
s = []
for line in sys.stdin:
    s += line.lower()
A = 'abcdefghijklmnopqrstuvwxyz'
for c in A:
    print(c+' : {}'.format(s.count(c)))

Submission status: Accepted

Solution code:
import sys

s = []
for line in sys.stdin:
    s.extend(list(line.lower()))  

alphabet = "abcdefghijklmnopqrstuvwxyz"

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

Submission status: Accepted

Solution code:
count = [0 for i in range(26)]
while(1):
    try:
        str = raw_input().lower()
    except EOFError:
            break
    
    for i in range(len(str)):
        k = 97
        for j in range(26):
            if str[i] == chr(k):
                count[j] += 1
            k += 1

k = 97
for i in range(26):
    print "%s : %d" % (chr(k), count[i])
    k += 1

Submission status: Accepted

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: Accepted

Solution code:
import string
s = ''
while True:
    try:
        s += input().lower()
    except EOFError:
        break
for a in string.ascii_lowercase:
    print('{0} : {1}'.format(a, s.count(a)))

Submission status: Accepted

Solution code:
import sys
import string
s = sys.stdin.read().lower()
for a in string.ascii_lowercase:
    print('{0} : {1}'.format(a, s.count(a)))

Submission status: Accepted

Solution code:
import sys
import string

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

character_count_map = {}

for c in text.lower():
    if c not in character_count_map:
        character_count_map[c] = 0
    character_count_map[c] += 1

for c in string.ascii_lowercase:
    if c in character_count_map:
        print(c, ":", character_count_map[c])
    else:
        print(c, ":", 0)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
sentence = ''
data = 'abcdefghijklmnopqrstuvwxyz'
for line in sys.stdin:
    sentence += line.lower()
for i in data:
    print(i + ' : ' + str(sentence.count(i)))

Submission status: Accepted

Solution code:
import sys
alphabet = "abcdefghijklmnopqrstuvwxyz"
dictionary = {}
for character in alphabet:
    dictionary[character] = 0

for line in sys.stdin:
    for character in line.strip():
        if character.lower() in dictionary:
            dictionary[character.lower()] += 1

for character in alphabet:
    print(character + ' : ' + str(dictionary[character]))

Submission status: Accepted

Solution code:
import sys

s = ''
for line in sys.stdin:
    s += line
s = s.lower()
count = {letter: s.count(letter) for letter in set(s)}
for c in range(97,97+26):
    if chr(c) in count:
        print("%c : %d" % (chr(c), count[chr(c)]))
    else:
        print("%c : 0" % chr(c))

Submission status: Accepted

Solution code:
import sys
if __name__ == '__main__':
    letter_counts = [0] * 26  # ?????¢????????????????????????????????° [0]???'a'???[25]???'z'??????????????°
    for line in sys.stdin:

        # ?°?????????¨??§??????????????\????????????
        lower_text = line.lower()

        # ??¢???????????????????????¨??????????????°???????¨?
        for c in lower_text:
            if 'a' <= c <= 'z':
                letter_counts[ord(c)-ord('a')] += 1

    # ????????? 'a : a????????°' ?????¢??§z?????§1????????¨?????????
    for i, n in enumerate(letter_counts):
        print('{0} : {1}'.format(chr(ord('a')+i), n))

Submission status: Accepted

Solution code:
ms = ""
dic = {k: int(0) for k in [chr(i) for i in range(97, 123)]}
while True:
    try:
        inp = input()
        ms += inp
    except:
        break

for i in ms.lower():
    if ord(i) >= 97 and ord(i) <= 122:
        dic[i] += 1

for k, v in sorted(dic.items(), key=lambda x: x[0]):
    print("{0} : {1}".format(k, v))

Submission status: Accepted

Solution code:
import string

alphabets = {k:0 for k in string.ascii_lowercase}

while True:
  try:
    for c in input().lower():
      if alphabets.get(c) is None:
        continue
      alphabets[c] += 1
  except:
    break
for c, n in sorted(alphabets.items()):
  print("{} : {}".format(c, n))

Submission status: Accepted

Solution code:
import sys
a=[0 for _ in range(26)]
for s in sys.stdin:
    for c in s.lower():
        if 'a' <= c <= 'z':
            a[ord(c) - 97] += 1
for i,v in enumerate(a):
    print(chr(i+97) + " : " + str(v))

Submission status: Accepted

Solution code:
s=""
import fileinput
a=fileinput.input()
for i in a:
	s+=i
s=list(s)
res=[0 for i in range(26)]
for i in s:
	if i.isalpha():
		i=i.lower()
		res[ord(i)-ord("a")]+=1

for i in range(26):
	s=chr(i+ord("a"))+" : "+str(res[i])
	print(s)

Submission status: Accepted

Solution code:
import sys
sen=[]
for line in sys.stdin:
    sen.append(line)
Sen=''.join(sen)

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: Accepted

Solution code:
# coding: utf-8

c_al = [0] * 26

while True:
    try:
        s = input()
        for i in s:
            if i.isalpha():
                c_al[ord(i.lower()) - ord("a")] += 1
    except EOFError:
        break

for i in range(ord("a"),ord("a")+26):
    print("{0} : {1}".format(chr(i),c_al[i - ord("a")]))

Submission status: Accepted

Solution code:
import collections
import sys
S = "".join([line for line in sys.stdin])
count = collections.Counter(S.lower())
for char in "abcdefghijklmnopqrstuvwxyz":
    print("{0:s} : {1:d}".format(char, count[char]))

Submission status: Accepted

Solution code:
import sys
d=[0 for i in range(26)]
for line in sys.stdin:
    for c in line:
        x = ord(c)
        if ord('A')<=x and x<=ord('Z'):
            x -= (ord('A')-ord('a'))
        if ord('a')<=x and x<=ord('z'):
            d[x-ord('a')] += 1   

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

Submission status: Accepted

Solution code:
text = ''
while True:
    try:
        s = input().lower()
    except EOFError:
        break
    if s == '':
        break
    text += s
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i+' : '+str(text.count(i)))
    #print("{0} : {1}".format(i, text.count(i)))

Submission status: Accepted

Solution code:
import sys

cnt = [0]*26
for line in sys.stdin:
    for a in line:
        if(ord(a) >= 65 and ord(a) <= 90):
            cnt[ord(a) - 65] += 1
        if(ord(a) >= 97 and ord(a) <= 122):
            cnt[ord(a) - 97] += 1

for i in xrange(26):
    print unichr(97 + i) + " : " + str(cnt[i])

Submission status: Accepted

Solution code:
table = "abcdefghijklmnopqrstuvwxyz"
array = ''
while True:
    try:
        array += str(input().lower())
    except EOFError:
        break

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

Submission status: Accepted

Solution code:
import sys
s = str()
alphabet = "abcdefghijklmnopqrstuvwxyz"
for line in sys.stdin:
    s+=line.lower()
for c in alphabet:
    print(c+" : "+str(s.count(c)))

Submission status: Accepted

Solution code:
import sys
import string

s = sys.stdin.read().lower()
for c in string.ascii_lowercase:
    print(c, ":", s.count(c))

Submission status: Accepted

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

Submission status: Accepted

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