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:
result = []
for i in range(0, 26):
    result.append(0)

sentinel = "\r\n" # 遇到这个就结束

while 1:
    try:
        str_in = input()
        for i in str_in:
            i = ord(i)
            if (i >= 65 and i <= 90):
                result[i - 65] += 1
            if (i >= 97 and i <= 122):
                result[i - 97] += 1
    except :
        break

for i in range(0, 26):
    print(chr(i + 97) + ' : ' + str(result[i]))

Submission status: Accepted

Solution code:
alphabet = 'a b c d e f g h i j k l m n o p q r s t u v w x y z'
alpList = list(map(str, alphabet.split()))
countList = [0] * 26
message = ''

while True:
    try:
        message += str(input()).lower()
    except:
        break
        
for i in range(len(message)):
    for j in alpList:
        if message[i] == j:
            countList[alpList.index(j)] += 1

for i in alpList:
    print(i + ' : ', end = '')
    print(countList[alpList.index(i)])

Submission status: Accepted

Solution code:
str = ""

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

for i in range(ord("a"), ord("z")+1):
    print(chr(i), ":", str.count(chr(i)))

Submission status: Accepted

Solution code:
sentence = ""
while True:
    try:
        sentence += input()
    except EOFError:
        break

sentence = sentence.lower()
for c in range(ord("a"), ord("z")+1):
    print("{} : {}".format(chr(c), sentence.count(chr(c))))

Submission status: Accepted

Solution code:
import sys

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

alphabet = []
for i in range(26):
    alphabet.append(chr(ord('a') + i))

for j in alphabet:
    print(j, ':', sentence.count(j))

Submission status: Accepted

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



def count(arg1):
    count = S.count(arg1)+S.count(arg1.upper())
    print(arg1+" : ", end="")
    print(count)

count("a")
count("b")
count("c")
count("d")
count("e")
count("f")
count("g")
count("h")
count("i")
count("j")
count("k")
count("l")
count("m")
count("n")
count("o")
count("p")
count("q")
count("r")
count("s")
count("t")
count("u")
count("v")
count("w")
count("x")
count("y")
count("z")

Submission status: Accepted

Solution code:
count = [0 for _ in range(26)]

while True:
    try:
        s = input()
    except:
        break
    for i in range(len(s)):
        m = ord(s[i]) - ord('A')
        if m >= 0 and m < 26:
            count[m] += 1
        m = ord(s[i]) - ord('a')
        if m >= 0 and m < 26:
            count[m] += 1

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

Submission status: Accepted

Solution code:
list1=["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"]
list2=["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"]

list3=[0]*26
while True:
    try:
        S=input()
        for i in range(len(S)):
            for j in range(26):
                if S[i]==list1[j]:
                    list3[j]+=1
                if S[i]==list2[j]:
                    list3[j]+=1
        #print(list3)
    except EOFError:
        break
for k in range(26):
    print(list1[k]+" : "+str(list3[k]))

Submission status: Accepted

Solution code:
import sys

a = sys.stdin.readlines()
input = map(str, a)
lines = ','.join(input)
lines.replace('\n','')

i = 1
n = ord('a') - 1
m = ord('A') - 1
while n != ord('z'):
    n += 1
    m += 1
    counter = lines.count(chr(n)) + lines.count(chr(m))
    print('{} : {}'.format(chr(n),counter))

Submission status: Accepted

Solution code:
#!/usr/bin/env python
import sys

if __name__ == '__main__':
    s = reduce(lambda a,b : a+b, sys.stdin).lower()

    for c in [chr(i) for i in range(0x61, 0x7b)]:
        print '{} : {}'.format(c, len(filter(lambda x: x==c, s)))

Submission status: Accepted

Solution code:
from string import ascii_lowercase
from collections import defaultdict
d = defaultdict(int)
s = ""
while True:
  try:
    s+=input()
  except EOFError:
    break
for ele in s:
  d[ele.lower()] += 1
for c in ascii_lowercase:
  print(c+" : "+str(d[c]))

Submission status: Accepted

Solution code:
sss = input().lower()
alphas = [chr(i) for i in range(97, 97+26)]
counter = [0 for _ in range(len(alphas))]
while True:
	for i, a in enumerate(alphas):
		counter[i] += sss.count(a)
	try: sss = input().lower()
	except EOFError:
		break
for i, num in enumerate(counter):
	print(alphas[i], ':', num)

Submission status: Runtime Error

Solution code:
import sys

s = []
for line in sys.stdin:
    s.append(line)
s.lower()
for str in list("abcdefghijklmnopqrstuvwxyz"):
    print(*[str,":",s.count(str)])

Submission status: Runtime Error

Solution code:
import sys

s = ""
for line in sys.stdin:
    s.append(line)
s.lower()
for str in list("abcdefghijklmnopqrstuvwxyz"):
    print(*[str,":",s.count(str)])

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
bigALlist = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
smoALlist = list('abcdefghijklmnopqrstuvwxyz')
cnt = [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]
while True:
    try:
        text = list(input())
        for j in range(len(bigALlist)):
            for i in text:
                if (bigALlist[j] in i) or (smoALlist[j] in i):
                    cnt[j] = cnt + 1
            print('{0} : {1}'.format(smoALlist[j],cnt))
    except EOFError:
        break

Submission status: Runtime Error

Solution code:
alpha = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
C = []
b = ""
while True:
    a = input()
    a = a.lower()
    b += a
    if "." in a :
        break
for i in range(len(alpha)):
    k = b.count(alpha[i])
    C.append(k)
for i in range(len(alpha)):
    print(alpha[i]+" :",C[i])

Submission status: Runtime Error

Solution code:
alpha = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
C = []
b = ""
while True:
    a = input()
    a = a.lower()
    b += a
    if a == "" :
        break
for i in range(len(alpha)):
    k = b.count(alpha[i])
    C.append(k)
for i in range(len(alpha)):
    print(alpha[i]+" :",C[i])

Submission status: Runtime Error

Solution code:
alpha = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
C = []
b = ""
while True:
    a = input()
    a = a.lower()
    b += a
    if a == 'END_OF_TEXT':
        break
for i in range(len(alpha)):
    k = b.count(alpha[i])
    C.append(k)
for i in range(len(alpha)):
    print(alpha[i]+" :",C[i])

Submission status: Runtime Error

Solution code:
from string import ascii_lowercase
table = dict(zip(ascii_lowercase, [0 for _ in range(len(ascii_lowercase))]))
for s in input().split():
    for c in s:
        table[c.lower()] += 1
for k, v in table.items():
    print("{} : {}".format(k, v))

Submission status: Runtime Error

Solution code:
import re
import collections

answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(65, 91)}
n = re.sub(r"\s|,|\.", "", input().lower())
for i in n:
    answer[i] += 1
for k, v in answer.items():
    print(k+":"+str(v))

Submission status: Runtime Error

Solution code:
import re
import collections

while (True):
    n += input().lower()
    if n[-1] == ".":
        break

answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", n)
for i in n:
    answer[i] += 1
for k, v in answer.items():
    print(k+" : "+str(v))

Submission status: Runtime Error

Solution code:
import re
import collections

n = ""
while (True):
    n += input().lower()
    if n[-1] == ".":
        break

answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", n)
for i in n:
    answer[i] += 1
for k, v in answer.items():
    print(k+" : "+str(v))

Submission status: Runtime Error

Solution code:
import re
import collections

n = ""
while (True):
    n += input().lower()
    if n[-1] == ".":
        break

answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", n)

for i in n:
    answer[i] += 1
for k, v in answer.items():
    print(k+" : "+str(v))

Submission status: Runtime Error

Solution code:
import re
import collections

n = input().lower()
while (True):
    if n[-1] == ".":
        break
    n += input().lower()

answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", n)

for i in n:
    answer[i] += 1
for k, v in answer.items():
    print(k+" : "+str(v))

Submission status: Runtime Error

Solution code:
import re
import collections

n = input().lower()
while (True):
    if n[-1] == ".":
        break
    a = input().lower()
    n += a

answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", n)

for i in n:
    answer[i] += 1
for k, v in answer.items():
    print(k+" : "+str(v))

Submission status: Runtime Error

Solution code:
import re
import collections

n=""
while (True):
    n += input()
    if n[-1] == ".":
        break

answer = collections.OrderedDict()
answer = {chr(i): 0 for i in range(97, 123)}
n = re.sub(r"\s|,|\.", "", n.lower())

for i in n:
    answer[i] += 1
for k, v in answer.items():
    print(k+" : "+str(v))

Submission status: Runtime Error

Solution code:
alp_count = [0]*26

while True:

    string = str(input()).lower()

    alp = [chr(ord("a")+i) for i in range(26)]

    c = 0

    for j in range(26):
        c = string.count(alp[j])
        alp_count[j] += c
        print("%s : %d"%(alp[j],c))

Submission status: Runtime Error

Solution code:
ans = [0 for i in range(23)]
S = list(map(ord,input().upper()))
S = [e for e in S if 64<e<91]
print(S)
for i in S:
    ans[i-65]+=1
for i in range(26):
    print("{} : {}".format(chr(97+i),ans[i]))

Submission status: Runtime Error

Solution code:
ans = [0 for i in range(26)]
while True:
    a = input().upper()
    if a == "":break
    S = list(map(ord,a))
    S = [e for e in S if 64<e<91]
    for i in S:
        ans[i-65]+=1
for i in range(26):
    print("{} : {}".format(chr(97+i),ans[i]))

Submission status: Runtime Error

Solution code:
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
			'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
			'w','x', 'y', 'z']

dic = {}
for c in alphabet:
	dic[c] = 0

while True:
	string = list(input().rstrip().lower())
	if string == []: break

	for c in string:
		if c in alphabet:
			dic[c] = dic[c] + 1

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

Submission status: Runtime Error

Solution code:
ll=[chr(i) for i in range(97, 97+26)]
while True:
    a=input()
    a=a.lower()
    for i in a:
        l2.append(i)
for i in ll:
    b=l2.count(i)
    print(i,":",b)

Submission status: Runtime Error

Solution code:
ll=[chr(i) for i in range(97, 97+26)]
l2=list()
while True:
    a=input()
    a=a.lower()
    for i in a:
        l2.append(i)
for i in ll:
    b=l2.count(i)
    print(i,":",b)

Submission status: Runtime Error

Solution code:
ll=[chr(i) for i in range(97, 97+26)]
l2=list()
a="happy"
while len(a)!=0:
    a=input()
    a=a.lower()
    for i in a:
        l2.append(i)
for i in ll:
    b=l2.count(i)
    print(i,":",b)

Submission status: Runtime Error

Solution code:
ll=[chr(i) for i in range(97, 97+26)]
l2=list()
a=input()
b=input()
c=input()
d=input()
for i in a:
    l2.append(i)
for i in b:
    l2.append(i)
for i in c:
    l2.append(i)
for i in d:
    l2.append(i)
for i in ll:
    b=l2.count(i)
    print(i,":",b)

Submission status: Runtime Error

Solution code:
alp=[]
txt=[]
for i in range(97,97+26):
	alp.append(chr(i))	
while True:
	if input()=='':
		break
	else:
		a=input()
		for i in a:
			txt.append(str.lower(i))

for i in alp:
	num=0
	for j in txt:
		if i==j:
			num+=1
	print(i+' : '+str(num))

Submission status: Runtime Error

Solution code:
a=input().split()
r=int(a[0])
c=int(a[1])
all_list=list()
for i in range(c+1):
    all_list.append(0)
for i in range(r):
    count=0
    b=input().split()
    b=[int(i) for i in b]
    b.append(sum(b))
    for i in b:
        all_list[count]=all_list[count]+i
        print(i,end=" ")
        count+=1
    print()
for i in all_list:
    print(i,end=" ")

Submission status: Runtime Error

Solution code:
import string
text = ''
while True:
    in_text = input().lower()
    if not in_text:
        break
    text += in_text
for char in string.ascii_lowercase:
    print(char, ':', text.count(char))

Submission status: Runtime Error

Solution code:
import string
text = ''
while True:
    text += input().lower()
    for char in string.ascii_lowercase:
        print(char, ':', text.count(char))

Submission status: Runtime Error

Solution code:
count = [0 for i in range(26)]
alpha = "abcdefghijklmnopqrstuvwxyz"
while True:
    sentence = input()
    for letter in sentence:
        letter.lower()
        num = 0
        for j in alpha:
            if letter == j:
                count[num] += 1
            else:
                num += 1
num = 0
for k in alpha:
    print(k + " : " + str(count[num]))
    num += 1

Submission status: Runtime Error

Solution code:
count = [0 for i in range(26)]
alpha = "abcdefghijklmnopqrstuvwxyz"
while True:
    sentence = input()
    if sentence == "":
        break
    for letter in sentence:
        letter.lower()
        num = 0
        for j in alpha:
            if letter == j:
                count[num] += 1
            else:
                num += 1
num = 0
for k in alpha:
    print(k + " : " + str(count[num]))
    num += 1

Submission status: Runtime Error

Solution code:
table = [0] * 26
string = []
while True:
  try:
    string += list(input())
  except EOFError:
    break

for s in string:
  n = ord(s.lower()) - 97
  if n >= 0 and n <= 25:
    table[n] += 1

for idx, s in enumerate(table):
  print(chr(idx + 97) + " : " + str(s)

Submission status: Runtime Error

Solution code:
import sys

letter="abcdefghijklmnopqrstuvwxyz"
table=[]*26
input_str=sys.stdin.read()

for A in input_str:
    index=0
    for B in letter:
        if A == B or A == B.upper():
            table[index] += 1
            break
        index += 1

for i in ragne(len(letter)):
    print("%s : %d"%(letter[i],table[i]))

Submission status: Runtime Error

Solution code:
import sys

letter="abcdefghijklmnopqrstuvwxyz"
While True
    table=[0]*26
    try:
        input_str=input()
    except:
        break    
    for A in input_str:
        index=0
        for B in letter:
            if A == B or A == B.upper():
                table[index] += 1
                break
                index += 1

    for i in range(len(letter)):
        print("%s : %d"%(letter[i],table[i]))

Submission status: Runtime Error

Solution code:
import sys

letter="abcdefghijklmnopqrstuvwxyz"
While True:
    table=[0]*26
    try:
        input_str=input()
    except:
        break
    for A in input_str:
        index=0
        for B in letter:
            if A == B or A == B.upper():
                table[index] += 1
                break
                index += 1

    for i in range(len(letter)):
        print("%s : %d"%(letter[i],table[i]))

Submission status: Runtime Error

Solution code:
a = abcdefghijklmnopqrstuvwxyz
b = input()
for i in range(26):
    print(a[i],':',b.count(a[i]))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
    st=[]
    n=input()
    if n=="":
      break
    st += n.lower()
    char = "abcdefghijklmnopqrstuvwxyz"

    for i in range(len(char)):
      print(char[i],":",st.count(char[i]))

Submission status: Runtime Error

Solution code:
while True:
  st=[]
  n=input()
  
  if n=="":
    break
    
  st += n.lower()
  char = "abcdefghijklmnopqrstuvwxyz"

  for i in range(len(char)):
    print(char[i],":",st.count(char[i]))

Submission status: Runtime Error

Solution code:
st=[]
while True:
  n=input()
  
  if n=="":
    break
    
  st += n.lower()
  char = "abcdefghijklmnopqrstuvwxyz"

  for i in range(len(char)):
    print(char[i],":",st.count(char[i]))

Submission status: Runtime Error

Solution code:
x = ""
while True:
    try:
        x += str(input())
    except ValueError:
        pass
alist = list(x)
alphabet = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
ALPHABET = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
aa = [0]*27
for num in alist:
    itr =0
    for alp in alphabet:
        if num == alp:
            aa[itr] += 1
        itr += 1
    itr = 0
    for ALP in ALPHABET:
        if num == ALP:
            aa[itr] += 1
        itr += 1
for i in range(26):
    print("{} : {}".format(alphabet[i], aa[i]))

Submission status: Runtime Error

Solution code:
import sys
c = [0]*26
b = "abcdefghijklmnopqrstuvwxyz"
a = sys.stdin.read()
for A in a:
    k = 0
    for B in b:
        if A == B or A == B.upper():
            c[k] += 1
            break
        index += 1
for i in range(len(b)):
    print("%s : %d"%(letters[i],c[i]))

Submission status: Runtime Error

Solution code:
str = input()
for i in range(0x61,0x7b):
    print("%c : %d", %(i,str.count(str(i))))

Submission status: Runtime Error

Solution code:
st = input()
for i in range(0x61,0x7b):
    print("%c : %d", %(i,st.count(str(i))))

Submission status: Runtime Error

Solution code:
st = input()
for i in range(0x61,0x7b):
    print("%c : %d", %(i,st.count(chr(i))))

Submission status: Runtime Error

Solution code:
import sys

data = sys.stdin().read()
for i in range(0x61,0x7b):
    print("%c : %d"  %(i,data.lower().count(chr(i))))

Submission status: Runtime Error

Solution code:
l = {chr(i): 0 for i in range(ord("a"), ord("z")+1)}
while True:
    s = input().lower()
    if not s:
        break
    for s_ in s:
        if ord("a") <= ord(s_) <= ord("z"):
            l[s_] += 1
for k in sorted(l.keys()):
    print("%c : %d" %(k, l[k]))

Submission status: Runtime Error

Solution code:
l = {chr(i): 0 for i in range(ord("a"), ord("z")+1)}
s = ""
while True:
    try:
        s += input()
    except EOFError:
        break
for s_ in list(s.lower()):
    l[s_] += 1
for k in sorted(l.keys()):
    print("%c : %d" %(k, l[k]))

Submission status: Runtime Error

Solution code:
l=[0]*26
for h in sys.stdin:
    for i in h:
        k=ord(i.lower())
        if 96<k<123:l[k-97]+=1
for i in range(26):print chr(i+97),':',l[i]

Submission status: Runtime Error

Solution code:
a = 'abcdefghijklmnopqrstuvwxyz'
b = [0 for i in range(len(a))]
while True:
	S = raw_input().lower()
	if len(S) == 0:
		break
	for j in range(26):
		b[j] += S.count(a[j])
for i in range(len(a)):
	print str(a[i])+" : "+str(b[i])

Submission status: Runtime Error

Solution code:
a = 'abcdefghijklmnopqrstuvwxyz'
b = [0 for i in range(len(a))]
while True:
	S = raw_input().lower()
	if S == "":
		break
	for j in range(26):
		b[j] += S.count(a[j])
for i in range(len(a)):
	print str(a[i])+" : "+str(b[i])

Submission status: Runtime Error

Solution code:
import string
abc = list(string.ascii_lowercase)
li = [0 for a in range(len(abc))]

while True:
    a = raw_input()
    if a != '':
        for a in list(a):
            if a.lower() in abc:
                tmp = abc.index(a.lower())
                li[tmp] = li[tmp] + 1
    else:
        break

for a in range(len(abc)):
    print abc[a] + ' : ' + li[a]

Submission status: Runtime Error

Solution code:
import string
abc = list(string.ascii_lowercase)
li = [0 for a in range(len(abc))]

while True:
    a = raw_input()
    if a != '':
        for a in list(a):
            if a.lower() in abc:
                tmp = abc.index(a.lower())
                li[tmp] = li[tmp] + 1
    else:
        break

for a in range(len(abc)):
    print abc[a] + ' : ' + str(li[a])

Submission status: Runtime Error

Solution code:
abc = ['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']
li = [0 for a in range(len(abc))]

while True:
    a = raw_input()
    if a != '':
        for a in list(a):
            if a.lower() in abc:
                tmp = abc.index(a.lower())
                li[tmp] = li[tmp] + 1
    else:
        break

for a in range(len(abc)):
    print abc[a] + ' : ' + str(li[a])

Submission status: Runtime Error

Solution code:
abc = ['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']
li = [0 for a in range(len(abc))]


a = raw_input()
if a != '':
    for a in list(a):
        if a.lower() in abc:
            tmp = abc.index(a.lower())
            li[tmp] = li[tmp] + 1
else:
    break

for a in range(len(abc)):
    print abc[a] + ' : ' + str(li[a])

Submission status: Runtime Error

Solution code:
import string
az = list(string.ascii_lowercase)
li = [0 for a in range(len(az))]

while True:
    a = raw_input()
    if a != '':
        for b in list(a):
            if b.lower() in abc:
                tmp = az.index(a.lower())
                li[tmp] = li[tmp] + 1
    else:
        break

for c in range(len(ac)):
    print abc[c] + ' : ' + str(li[c])

Submission status: Runtime Error

Solution code:
import string
az = list(string.ascii_lowercase)
li = [0 for a in range(len(az))]

while True:
    a = raw_input()
    if a != '':
        for b in list(a):
            if b.lower() in az:
                tmp = az.index(a.lower())
                li[tmp] = li[tmp] + 1
    else:
        break

for c in range(len(az)):
    print abc[c] + ' : ' + str(li[c])

Submission status: Runtime Error

Solution code:
import string
az = list(string.ascii_lowercase)
li = [0 for a in range(len(az))]

while True:
    a = raw_input()
    if a != '':
        for b in list(a):
            if b.lower() in az:
                tmp = az.index(b.lower())
                li[tmp] = li[tmp] + 1
    else:
        break

for c in range(len(az)):
    print az[c] + ' : ' + str(li[c])

Submission status: Runtime Error

Solution code:
import string
az = list(string.ascii_lowercase)
li = [0 for a in range(len(az))]

while True:
    a = raw_input()
    try:
        if a != '':
            for b in list(a):
                if b.lower() in az:
                    tmp = az.index(b.lower())
                    li[tmp] = li[tmp] + 1
    except:
        break

for c in range(len(az)):
    print az[c] + ' : ' + str(li[c])

Submission status: Runtime Error

Solution code:
s = raw_input()
p = raw_input()

s3 = s + s + s

if p in s3:
    print 'Yes'
else:
    print 'No'

Submission status: Runtime Error

Solution code:
text = input()
a = []
a.append([chr(x) for x in range(ord('a'), ord('z') + 1)])
textList = []
for x in range(len(text)):
    textList.append(text[x].lower())

for x in range(len(a[0])):
    print(a[0][x], ':', textList.count(a[0][x]))

続けるにはENTERを押すかコマンドを入力してください
text = input()
a = []
a.append([chr(x) for x in range(ord('a'), ord('z') + 1)])
textList = []
for x in range(len(text)):
    textList.append(text[x].lower())

for x in range(len(a[0])):
    print(a[0][x], ':', textList.count(a[0][x]))

Submission status: Runtime Error

Solution code:
while True:
    text = input()
    a = {}
    for x in range(ord('a'), ord('z') + 1):
        a[chr(x)] =  list(text.lower()).count(chr(x))
        print(chr(x), ':', a[chr(x)])

Submission status: Runtime Error

Solution code:
alphabetTable = dict.fromkeys([chr(i) for i in range(97, 123)], 0)

while True:
    text = input()

    if len(text) == 0:
        break

    for i in range(len(text)):
        if text[i].lower() in alphabetTable:
            alphabetTable[text[i].lower()] += 1

sortedTable = sorted(alphabetTable.keys())
for r in sortedTable:
    print(r,':',alphabetTable[r])

Submission status: Runtime Error

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

while True:
    text = input()
    for x in list(text.lower()):
        print(x)
        a[ord(x)] += 1

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

Submission status: Runtime Error

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

text = input()
for x in list(text.lower()):
    print(x)
    a[ord(x)] += 1
for x in range(ord('a'), ord('z') + 1):
        print(chr(x), ':', a[x])

Submission status: Runtime Error

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

#while True:
text = input()
for x in text:
    a[ord(x.lower())] += 1

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

Submission status: Runtime Error

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

while True:
    text = input()
    for x in text:
        a[ord(x.lower())] += 1

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

Submission status: Runtime Error

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

while True:
    text = input()
    if text == ' ':
        break
    for x in text:
        a[ord(x.lower())] += 1

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

Submission status: Runtime Error

Solution code:
text = raw_input()
count = {} #a~zの出現回数を記録

for i in range(26):
    count[(i)] = 0
    
for i in range(len(text)):
    if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
        count[(ord(text[i]))-ord('a')] += 1

#出現回数の表示
for i in range(26):
    print '%s : %d' %(unichr(i+ord('a')), count[(i)])

Submission status: Runtime Error

Solution code:
text = raw_input()
count = {} #a~zの出現回数を記録

for i in range(26):
    count[(i)] = 0
    
for i in range(len(text)):
    if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
        count[(ord(text[i]))-ord('a')] += 1

#出現回数の表示
for i in range(26):
    print '%s : %d' %(unichr(i+ord('a')), count[(i)])
print

Submission status: Runtime Error

Solution code:
text = raw_input()
count = {} #a~zの出現回数を記録

for i in range(26):
    count[(i)] = 0
    
for i in range(len(text)):
    if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
        count[(ord(text[i]))-ord('a')] += 1

#出現回数の表示
for i in range(26):
    print '%s : %d' %(unichr(i+ord('a')), count[(i)])

exit(0)

Submission status: Runtime Error

Solution code:
text = raw_input()
count = {} #a~zの出現回数を記録
print ord('a')
print ord('A')

for i in range(26):
    count[(i)] = 0
    
for i in range(len(text)):
    if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
        count[(ord(text[i]))-ord('a')] += 1
    if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
        count[(ord(text[i]))-ord('A')] += 1

#出現回数の表示
for i in range(26):
    print '%s : %d' %(unichr(i+ord('a')), count[(i)])

Submission status: Runtime Error

Solution code:
text = raw_input()
count = {} #a~zの出現回数を記録
print ord('a')
print ord('A')

for i in range(26):
    count[(i)] = 0
    
for i in range(len(text)):
    if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
        count[(ord(text[i]))-ord('a')] += 1
    if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
        count[(ord(text[i]))-ord('A')] += 1

#出現回数の表示
for i in range(26):
    print '%s : %d' %(unichr(i+ord('a')), count[(i)])
    
exit(0)

Submission status: Runtime Error

Solution code:
text = raw_input()
count = {} #a~zの出現回数を記録

for i in range(26):
    count[(i)] = 0
    
for i in range(len(text)):
    if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
        count[(ord(text[i]))-ord('a')] += 1
    if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
        count[(ord(text[i]))-ord('A')] += 1

#出現回数の表示
for i in range(26):
    print '%s : %d' %(unichr(i+ord('a')), count[(i)])

Submission status: Runtime Error

Solution code:
count = {} #a~zの出現回数を記録

while True:
    try:
        text = raw_input()
    except:
        break
    for i in range(26):
        count[(i)] = 0
    
    for i in range(len(text)):
        if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
            count[(ord(text[i]))-ord('a')] += 1
        if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
            count[(ord(text[i]))-ord('A')] += 1

    #出現回数の表示
    for i in range(26):
        print '%s : %d' %(unichr(i+ord('a')), count[(i)])

Submission status: Runtime Error

Solution code:
count = {} #a~zの出現回数を記録
for i in range(26):
    count[(i)] = 0

while True:
    try:
        text = raw_input()
    except EOFError:
        break
    for i in range(len(text)):
        if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
            count[(ord(text[i]))-ord('a')] += 1
        if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
            count[(ord(text[i]))-ord('A')] += 1

#出現回数の表示
for i in range(26):
    print '%s : %d' %(unichr(i+ord('a')), count[(i)])

Submission status: Runtime Error

Solution code:
count = {} #a~zの出現回数を記録
for i in range(26):
    count[(i)] = 0

while True:
    text = raw_input()
    if(len(text) == 0):
        break
    for i in range(len(text)):
        if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
            count[(ord(text[i]))-ord('a')] += 1
        if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
            count[(ord(text[i]))-ord('A')] += 1

#出現回数の表示
for i in range(26):
    print '%s : %d' %(unichr(i+ord('a')), count[(i)])

Submission status: Runtime Error

Solution code:
count = {} #a~zの出現回数を記録
for i in range(26):
    count[(i)] = 0

while True:
    try:
        text = raw_input()
    except:
        break
    for i in range(len(text)):
        if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
            count[(ord(text[i]))-ord('a')] += 1
        if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
            count[(ord(text[i]))-ord('A')] += 1

#出現回数の表示
for i in range(26):
    print '%s : %d' %(unichr(i+ord('a')), count[(i)])

Submission status: Runtime Error

Solution code:
count = {} #a~zの出現回数を記録
for i in range(26):
    count[(i)] = 0

while True:
    text = ''
    try:
        text = raw_input()
    except:
        break
    for i in range(len(text)):
        if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
            count[(ord(text[i]))-ord('a')] += 1
        if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
            count[(ord(text[i]))-ord('A')] += 1

#出現回数の表示
for i in range(26):
    print '%s : %d' %(unichr(i+ord('a')), count[(i)])

Submission status: Runtime Error

Solution code:
count = {} #a~zの出現回数を記録
for i in range(26):
    count[(i)] = 0

while True:
    text = []
    try:
        text = raw_input()
    except:
        break
    for i in range(len(text)):
        if(ord(text[i]) >= ord('a') and ord(text[i]) <= ord('z')):
            count[(ord(text[i]))-ord('a')] += 1
        if(ord(text[i]) >= ord('A') and ord(text[i]) <= ord('Z')):
            count[(ord(text[i]))-ord('A')] += 1

#出現回数の表示
for i in range(26):
    print '%s : %d' %(unichr(i+ord('a')), count[(i)])