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:
a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
try:
    while True:
        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 

except EOFError:
    pass
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: Runtime Error

Solution code:
a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
try:
    while True:
        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 

except EOFError:
    pass

for i in range(26):
    print(w[i:i+1], ':', str(a[i]))

Submission status: Runtime Error

Solution code:
import sys

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

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

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

for key, val in alf:
  print(key + " : " + val)

Submission status: Runtime Error

Solution code:
import sys

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

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

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

for key, val in enumerate(alf):
  print(key + " : " + val)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a=ord('a')
rdif=range(ord('z')-a+1)
l=[0 for _ in rdif]
s=''
while not '.' in s:
    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: Runtime Error

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

while True:
    line = input()
    if not line:
        break;
    for s in line:
        s = s.lower()
        if s in m:
            m[s] += 1

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

Submission status: Runtime Error

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

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

Solution code:
st="."
num = [0 for i in range(26)]
while(st!=""):
    st=input().lower()
    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: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
    words = input()
    if words == EOF:
        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: Runtime Error

Solution code:
while True:
    try:
        words = input()
        if words 
        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: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
from collections import Counter
m = Counter(sys.stdin.readlines().replace("\n", "").lower())
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i, ":", m[i])

Submission status: Runtime Error

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

Solution code:
s = sys.stdin.readlines().replace("\n", "").lower()
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i, ":", s.count(i))

Submission status: Runtime Error

Solution code:
import sys
s = sys.stdin.readlines().replace("\n", "").lower()
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i, ":", s.count(i))

Submission status: Runtime Error

Solution code:
import sys
s = sys.stdin.readlines().lower()
for i in 'abcdefghijklmnopqrstuvwxyz':
    print(i, ":", s.count(i))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys string = str() for line in sys.stdin: string += line.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: Runtime Error

Solution code:
s = '' while True: try: s += input().lower() except EOFError: break for c in 'abcdefghijklmnopqrstuvwxyz': print('{} : {}'.format(c, s.count(c)))

Submission status: Runtime Error

Solution code:
# coding:utf-8
a = list(raw_input().split().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: Runtime Error

Solution code:
# coding: UTF-8
alfa_list = [chr(i) for i in range(97, 97+26)]
count_list = []
lines = []
while(1):
    read_line = raw_input()
    if read_line == '':
        break
    lines.append(read_line)
char_line = str(lines).lower()
for ch in alfa_list:
    count_list.append(char_line.count(ch))
for i in range(26):
    print "{0} : {1}".format(alfa_list[i],count_list[i])

Submission status: Runtime Error

Solution code:
char_list = []
while(True):
    str_in = input()
    if str_in=="":
        break
    char_list.append([i for i in str_in.lower()])
char_dict = {i:0 for i in "abcdefghijklmnopqrstuvwxyz"}
for i in range(len(char_list)):
    for j in char_list[i]:
        if j in char_dict:
            char_dict[j] += 1
for i in char_dict:
    print(i+" : {0}".format(char_dict[i]))

Submission status: Runtime Error

Solution code:
#! usr/bin/env python
# coding: utf-8

char_list = []
while(True):
    str_in = input()
    if str_in=="":
        break
    char_list.append([i for i in str_in.lower()])
# print(char_list)
char_dict = {i:0 for i in "abcdefghijklmnopqrstuvwxyz"}
for i in range(len(char_list)):
    for j in char_list[i]:
        if j in char_dict:
            char_dict[j] += 1
# print(char_dict)
for i in char_dict:
    print(i+" : {0}".format(char_dict[i]))

Submission status: Runtime Error

Solution code:
word = ''
while True:
    w = input().lower()
    if w == '':
        break
    else:
        word += w
for a in alphabet:
    print(a+':'+str(word.count(a)))

Submission status: Runtime Error

Solution code:
string = []
while 1:
	data = input().lower()
	if(data is ""):
		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: Runtime Error

Solution code:
import sys

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

line = sys.stdin.read().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: Runtime Error

Solution code:
s = ''
while True:
    s0 = input()
    if s0 == '':
        break
    else:
        s += s0
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: Runtime Error

Solution code:
import string as st
from msvcrt import getch
string=[]
while True:
    s = input()
    if s == '':
        break
    string.append(s)
for i in range(len(st.ascii_lowercase)):
    print("{} : {}".format(st.ascii_lowercase[i],string.count(st.ascii_lowercase[i])))

Submission status: Runtime Error

Solution code:
import string as st
string=[]
while True:
    s = input()
    if s == '':
        break
    string.append(s)
    string=','.join(string)
    string = string.lower()
for i in range(len(st.ascii_lowercase)):
    print("{} : {}".format(st.ascii_lowercase[i],string.count(st.ascii_lowercase[i])))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import string as st
string=[]
low_s=[]
while True:
    s = input()#入力
    print("s =",s)
    string =list(string)#list変換
    if s == '':#空入力のときループぬける
        break
    string.extend(s)#list追加
    #print(string)
    string=map(str,string)
    string="".join(string)
    print(string)
    #print(type(string))
    low_s= string.lower()
    print(low_s)
for i in range(len(st.ascii_lowercase)):
    print("{} : {}".format(st.ascii_lowercase[i],low_s.count(st.ascii_lowercase[i])))

Submission status: Runtime Error

Solution code:
import string as st
string=[]
low_s=[]
while True:
    s = input()#入力
    string =list(string)#list変換
    if not s :#空入力のときループぬける
        break
    string.extend(s)#list追加
    string=map(str,string)
    string="".join(string)
    low_s= string.lower()
    print(low_s)
for i in range(len(st.ascii_lowercase)):
    print("{} : {}".format(st.ascii_lowercase[i],low_s.count(st.ascii_lowercase[i])))

Submission status: Runtime Error

Solution code:
from collections import OrderedDict as od

 
dic = od()
for s in "abcdefghijklmnopqrstuvwxyz":
    dic[s] = 0

x = ""
while True:  
    try:  
        x += line
    except EOFError:
        break

for key,value in dic.items():
    value = x.count(key)
    print(key, ":", value)

Submission status: Runtime Error

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

while True:
    word = list(map(str, input()))

    if not word:
        break

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

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

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

while True:
    ad_word = list(map(str, input()))
    if not ad_word:
        break
    else:
        word.append(ad_word)

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

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

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

while True:
    ad_word = list(map(str, input()))
    if ad_word == 0:
        break
    else:
        word.append(ad_word)

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

Solution code:
#! python3
# counting_characters.py

import sys

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

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

for sent in sents:
    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: Runtime Error

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

while True:
    li=list(input())
    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
    if "." in li:
        break
    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: Runtime Error

Solution code:
Sp = [1,2,3,4,5,6,7,8,9,10,11,12,13]
Hu = [1,2,3,4,5,6,7,8,9,10,11,12,13]
Cr = [1,2,3,4,5,6,7,8,9,10,11,12,13]
Dy = [1,2,3,4,5,6,7,8,9,10,11,12,13]
 
num = int(input())
i = 0
 
while i < num:
     suit, n = raw_input().split()
     n = int(n)
     if suit == "S":
        Sp[n-1] = 0
     elif suit == "H":
        Hu[n-1] = 0
     elif suit == "C":
        Cr[n-1] = 0
     else:
        Dy[n-1] = 0
     i += 1
 
for i in Sp:
    if i != 0:
        print "S", i
 
for i in Hu:
    if i != 0:
        print "H", i
 
for i in Cr:
    if i != 0:
        print "C", i
 
for i in Dy:
    if i != 0:
        print "D", i

Submission status: Runtime Error

Solution code:
import sys
str=[]
for line in sys.stdin:
    str.append(line)
s=''.join(str).lower
s=list(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: Runtime Error

Solution code:
import sys
table = "abcdefghijklmnopqrstuvwxyz"
sentence = ''
for line in sys.stdin:
    sentence += str(input().lower())

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

Submission status: Runtime Error

Solution code:
import sys

table = "abcdefghijklmnopqrstuvwxyz"

sentence = sys.stdin.read()
sentence1 = sentence.lower()
for i in table:
    print(i + ' : ' + str(sentence1.count(i))

Submission status: Runtime Error

Solution code:
import sys

table = "abcdefghijklmnopqrstuvwxyz"

sentence = sys.stdin.read()
sentence1 = str(entence.lower())
for i in table:
    print(i + ' : ' + str(sentence1.count(i))

Submission status: Runtime Error

Solution code:
import sys

table = "abcdefghijklmnopqrstuvwxyz"

sentence = sys.stdin.read()
sentence1 = str(entence.lower())
for i in table:
    print(i + ' : ' + str(sentence1.count(i)))

Submission status: Runtime Error

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
    else:
        pass

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a_dict = {chr(a): 0 for a in range(97, 123)}
while True:
    S = input().lower()
    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: Runtime Error

Solution code:
a_dict = {chr(a): 0 for a in range(97, 123)}
while True:
    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: Runtime Error

Solution code:
a_dict = {chr(a): 0 for a in range(97, 123)}
while True:
    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: Runtime Error

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 range(len(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: Runtime Error

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)

    while(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()

# Accepted.

Submission status: Runtime Error

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)

    while(string = input()):
        for i in len(string):
            c = string[i]
            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: Runtime Error

Solution code:
# AOJ ITP1_8_C
import sys

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)

    text = sys.stdin.readlines()

    for i in range(len(text)):
        string = text[i]
        for k in len(string):
            c = string[k]
            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: Runtime Error

Solution code:
# AOJ ITP1_8_C
import sys

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)

    while True:
        string = input()
        if !string[0]: break
        for k in range(len(string)):
            c = string[k]
            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: Runtime Error

Solution code:
# AOJ ITP1_8_C
import sys

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)

    while True:
        string = input()
        if not len(string): break   # 長さが0のstringが来たら終了
        for k in range(len(string)):
            c = string[k]
            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: Runtime Error

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)

    while True:
        string = input()
        if not len(string): break   # 長さが0のstringが来たら終了
        for k in range(len(string)):
            c = string[k]
            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: Runtime Error

Solution code:
counts = [0] * 26

while True:
	s = str(input())
	if s == '': break
	
	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: Runtime Error

Solution code:
import sys

inp = sys.stdin()
counter = {}

for text in inp:
    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("{0} : {1}".format(a,counter.get(a,0)),sep='')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
T = H = 0
for x in range(n):
    t, h = input().split()
    tl = list(t)
    hl = list(h)
    for k,y in enumerate(tl):
        if ord(tl[k]) > ord(hl[k]):
            T += 3
            break
        elif ord(tl[k]) == ord(hl[k]):
            pass
        else:
            H += 3
            break
    else:
        H += 1
        T += 1
print(f"{str(T)} {str(H)}")

Submission status: Runtime Error

Solution code:
s = input()
p = input()
ret = 'No'
tts = s + s[:len(p)]
if p in tts: ret = 'Yes'
print(ret)

Submission status: Runtime Error

Solution code:
n = input().lower()
li=[chr(i) for i in range(97,97+26)]
for a in li:

Submission status: Runtime Error

Solution code:
# Counting Characters
import sys

charList = list('abcdefghijklmnopqrstuvwxyz')
lines = sys.stdin.readlines()
totalSentence = []
for s in range(lines):
    sentence = list(input().rstrip().lower())
    # print(sentence)
    for c in range(sentence):
        totalSentence.append(c)

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

Submission status: Runtime Error

Solution code:
import sys

s = ""
while 1 :
    si = input().strip().lower()
    if si == "" :
        break
    else :
        s += si


[print(i+" : "+str(s.count(i))) for i in "abcdefghijklmnopqrstuvwxyz"]

Submission status: Runtime 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()
    while input_word:
        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]))
        
        input_word = input()

Submission status: Runtime 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()
    while input_word:
        input_word = input_word.lower()
        for ch in input_word:
            if ch.isalpha() == True:
                alphabetical_table[ch] = alphabetical_table[ch] + 1
        input_word = input()
    for tp in alphabetical_table.items():
        print(tp[0] + " : " + str(tp[1]))

Submission status: Runtime 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()
    while input_word:
        input_word = input_word.lower()
        for ch in input_word:
            if ch.isalpha() == True:
                alphabetical_table[ch] = alphabetical_table[ch] + 1
        input_word = input()
        
    for tp in alphabetical_table.items():
        print(tp[0] + " : " + str(tp[1]))

Submission status: Runtime Error

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