s_id string | p_id string | u_id string | date string | language string | original_language string | filename_ext string | status string | cpu_time string | memory string | code_size string | code string | error string | stdout string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s930385036 | p02417 | u104171359 | 1486965864 | Python | Python3 | py | Runtime Error | 0 | 0 | 600 | #!usr/bin/env python3
import sys
def main():
letters = {
'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0,
'i': 0, 'j': 0, 'k': 0, 'l': 0, 'm': 0, 'n': 0, 'o': 0, 'p': 0,
'q': 0, 'r': 0, 's': 0, 't': 0, 'u': 0, 'v': 0, 'w': 0, 'x': 0,
... | Traceback (most recent call last):
File "/tmp/tmpa5ouwdgf/tmpcn1i_894.py", line 25, in <module>
main()
File "/tmp/tmpa5ouwdgf/tmpcn1i_894.py", line 16, in main
for letter in passage.lower():
^^^^^^^^^^^^^
AttributeError: '_io.TextIOWrapper' object has no attribute 'lower'
| |
s045418807 | p02417 | u639421643 | 1488283468 | Python | Python3 | py | Runtime Error | 0 | 0 | 392 | word = [chr(i) for i in range(97, 97+26)]
word_number = []
line = ""
while(1):
temp_line = input()
line += temp_line
if temp_line =="":
break
for target in word:
count = 0
for character in line:
if character.lower() == target:
count += 1
word_number.append(count)
f... | Traceback (most recent call last):
File "/tmp/tmpemncyzdf/tmpqpx2bblt.py", line 5, in <module>
temp_line = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s929271396 | p02417 | u130834228 | 1489113696 | Python | Python3 | py | Runtime Error | 0 | 0 | 308 | list_str2 = [0 for i in range(26)]
while(1):
list_str1 = list(input())
print(list_str1)
if list_str1 == []:
break
for i in range(len(list_str1)):
if 97 <= ord(list_str1[i].lower()) <= 122:
list_str2[ord(list_str1[i].lower())-97] += 1
for i in range(26):
print(chr(97+i)+' : '+str(list_str2[i])) | Traceback (most recent call last):
File "/tmp/tmp7q5w45wo/tmpxizld92k.py", line 4, in <module>
list_str1 = list(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s336558736 | p02417 | u208157605 | 1491692489 | Python | Python3 | py | Runtime Error | 0 | 0 | 285 | alphabet = 'abcdefghijklmnopqrstuvwxyz'
from collections import defaultdict
adict = defaultdict(int)
while True:
str = ''
str = input().lower()
if len(str) == 0:
break
for c in str:
adict[c] += 1
for k in alphabet:
print('%s : %i' %(k, adict[k])) | Traceback (most recent call last):
File "/tmp/tmpe57bu84t/tmppo4o50o6.py", line 8, in <module>
str = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s095841718 | p02417 | u208157605 | 1491692602 | Python | Python3 | py | Runtime Error | 0 | 0 | 281 | alphabet = 'abcdefghijklmnopqrstuvwxyz'
from collections import defaultdict
adict = defaultdict(int)
while True:
str_in = input().lower()
if len(str_in) == 0:
break
for c in str_in:
adict[c] += 1
for k in alphabet:
print('%s : %i' %(k, adict[k])) | Traceback (most recent call last):
File "/tmp/tmpa824uzux/tmpqo9fl5cy.py", line 7, in <module>
str_in = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s582521746 | p02417 | u208157605 | 1491692928 | Python | Python3 | py | Runtime Error | 40 | 7624 | 282 | alphabet = 'abcdefghijklmnopqrstuvwxyz'
from collections import defaultdict
adict = defaultdict(int)
while True:
str_in = input().lower()
for c in str_in:
adict[c] += 1
if str_in[-1] == '.':
break
for k in alphabet:
print('%s : %i' %(k, adict[k])) | Traceback (most recent call last):
File "/tmp/tmpun03_uqh/tmpo_ye8k64.py", line 7, in <module>
str_in = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s306670255 | p02417 | u208157605 | 1491693057 | Python | Python3 | py | Runtime Error | 30 | 7552 | 282 | alphabet = 'abcdefghijklmnopqrstuvwxyz'
from collections import defaultdict
adict = defaultdict(int)
while True:
str_in = input().lower()
for c in str_in:
adict[c] += 1
if str_in[-1] == '.':
break
for k in alphabet:
print('%s : %i' %(k, adict[k])) | Traceback (most recent call last):
File "/tmp/tmppm6udd2s/tmpf_egcl13.py", line 7, in <module>
str_in = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s419230478 | p02417 | u208157605 | 1491693187 | Python | Python3 | py | Runtime Error | 30 | 7496 | 325 | alphabet = 'abcdefghijklmnopqrstuvwxyz'
from collections import defaultdict
adict = defaultdict(int)
while True:
str_in = input().lower()
for c in str_in:
adict[c] += 1
try:
if str_in[-1] == '.':
break
except:
break
for k in alphabet:
print('%s : %i' %(k, adict... | Traceback (most recent call last):
File "/tmp/tmpp0utrz6r/tmp0ua75ifh.py", line 7, in <module>
str_in = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s704096369 | p02417 | u208157605 | 1491693274 | Python | Python3 | py | Runtime Error | 30 | 7484 | 325 | alphabet = 'abcdefghijklmnopqrstuvwxyz'
from collections import defaultdict
adict = defaultdict(int)
while True:
str_in = input().lower()
for c in str_in:
adict[c] += 1
try:
if str_in[-1] == '.':
break
except:
break
for k in alphabet:
print('%s : %i' %(k, adict... | Traceback (most recent call last):
File "/tmp/tmp392qm42g/tmp467_uegj.py", line 7, in <module>
str_in = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s929491950 | p02417 | u286589639 | 1492612044 | Python | Python3 | py | Runtime Error | 0 | 0 | 355 | array = input()
char = ["" for _ in range(len(array))]
for i in range(len(array)):
char[i] = array[i:i+1]
alp = [0 for _ in range(26)]
for j in range(len(array)):
for i in range(26):
if char[j] == chr(i+ord("A")) or c == chr(i+ord("a")):
alp[i] += 1
for i in range(26):
print("{0} : {1... | Traceback (most recent call last):
File "/tmp/tmpeinqwp6b/tmplqt9fdhs.py", line 1, in <module>
array = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s388477979 | p02417 | u286589639 | 1492644902 | Python | Python3 | py | Runtime Error | 0 | 0 | 393 | import sys
array = []
for line in sys.stdin:
array.append(line)
char = ["" for _ in range(len(array))]
for i in range(len(array)):
char[i] = array[i:i+1]
count = [0 for _ in range(26)]
for c in char:
for i in range(26):
if c == chr(i+ord("A")) or c == chr(i+ord("a")):
count[i] += 1
f... | Traceback (most recent call last):
File "/tmp/tmpu_zoi48s/tmp7dl7125a.py", line 18, in <module>
print("{0} : {1}".format(chr(i+ord("a")), alp[i]))
^^^
NameError: name 'alp' is not defined. Did you mean: 'all'?
| |
s853122788 | p02417 | u286589639 | 1492645087 | Python | Python3 | py | Runtime Error | 0 | 0 | 388 | import sys
array = ""
for line in sys.stdin:
array += line
char = ["" for _ in range(len(array))]
for i in range(len(array)):
char[i] = array[i:i+1]
count = [0 for _ in range(26)]
for c in char:
for i in range(26):
if c == chr(i+ord("A")) or c == chr(i+ord("a")):
count[i] += 1
for i ... | Traceback (most recent call last):
File "/tmp/tmple_u07mg/tmptm7r1hjm.py", line 18, in <module>
print("{0} : {1}".format(chr(i+ord("a")), alp[i]))
^^^
NameError: name 'alp' is not defined. Did you mean: 'all'?
| |
s445491123 | p02417 | u821624310 | 1496131328 | Python | Python3 | py | Runtime Error | 0 | 0 | 430 | a = [0 for i in range(26)]
cnt = 0
while 1:
S = input()
if not S:
break
for i in S:
if 65 <= ord(i) and ord(i) <= 90\
or 97 <= ord(i) and ord(i) <= 122:
if 65 <= ord(i) and ord(i) <= 90:
cnt = ord(i) - ord("A")
else:
cnt = ord(i... | Traceback (most recent call last):
File "/tmp/tmpxsic057h/tmpomz3ibvf.py", line 4, in <module>
S = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s567644700 | p02417 | u821624310 | 1496131923 | Python | Python3 | py | Runtime Error | 0 | 0 | 430 | a = [0 for i in range(26)]
cnt = 0
while 1:
S = input()
if not S:
break
for i in S:
if 65 <= ord(i) and ord(i) <= 90\
or 97 <= ord(i) and ord(i) <= 122:
if 65 <= ord(i) and ord(i) <= 90:
cnt = ord(i) - ord("A")
else:
cnt = ord(i... | Traceback (most recent call last):
File "/tmp/tmp45agnx2z/tmp4z5a0bgy.py", line 4, in <module>
S = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s464398009 | p02417 | u440180827 | 1496132266 | Python | Python3 | py | Runtime Error | 0 | 0 | 274 | count = {}
from string import ascii_lowercase
for c in ascii_lowercase:
count[c] = 0
str = input()
while str:
sum = 0
for c in str:
if c.isalpha():
count[c.lower()] += 1
str = input()
for c in ascii_lowercase:
print(c, ':', count[c]) | Traceback (most recent call last):
File "/tmp/tmpad9vzbrq/tmp6fqrpxol.py", line 5, in <module>
str = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s719417088 | p02417 | u821624310 | 1496135438 | Python | Python3 | py | Runtime Error | 0 | 0 | 437 | a = [0 for i in range(26)]
cnt = 0
while True:
S = input()
if S == "-1":
break
for i in S:
if 65 <= ord(i) and ord(i) <= 90\
or 97 <= ord(i) and ord(i) <= 122:
if 65 <= ord(i) and ord(i) <= 90:
cnt = ord(i) - ord("A")
else:
cnt ... | Traceback (most recent call last):
File "/tmp/tmpryl_nm25/tmpcb2nu08z.py", line 4, in <module>
S = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s690842194 | p02417 | u821624310 | 1496268748 | Python | Python3 | py | Runtime Error | 0 | 0 | 276 | a = [0 for i in range(26)]
w = []
while 1:
s = input()
if s == "-1":
break
w.append(s)
for i in w:
for j in i:
if j.isalnum():
c = ord(j.lower())
a[c-97] += 1
for i in range(26):
print(chr(i+97) + " : " + str(a[i])) | Traceback (most recent call last):
File "/tmp/tmpy0cm5uvy/tmpjjegab_v.py", line 4, in <module>
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s989440420 | p02417 | u821624310 | 1496271655 | Python | Python3 | py | Runtime Error | 0 | 0 | 275 | a = [0 for i in range(26)]
w = []
while 1:
s = input()
if s == "-1":
break
w.append(s)
for i in w:
for j in i:
if j.isalnum():
c = ord(j.lower())
a[c-97] += 1
for i in range(26):
print(chr(i+97) + " : " + str(a[i])) | Traceback (most recent call last):
File "/tmp/tmpxpf8x1be/tmp1yhyrd14.py", line 4, in <module>
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s125614755 | p02417 | u821624310 | 1496273109 | Python | Python3 | py | Runtime Error | 0 | 0 | 254 | a = [0 for i in range(26)]
while 1:
s = input()
if s == "-1":
break
print(s)
for i in s:
if i.isalnum():
c = ord(i.lower())
a[c-97] += 1
for i in range(26):
print(chr(i+97) + " : " + str(a[i])) | Traceback (most recent call last):
File "/tmp/tmpdkkkhita/tmpcg8ctldk.py", line 3, in <module>
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s048084558 | p02417 | u821624310 | 1496280099 | Python | Python3 | py | Runtime Error | 0 | 0 | 179 | import sys
cnts = {}
for line in imput():
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)) | Traceback (most recent call last):
File "/tmp/tmpofivee_s/tmpld50n4ak.py", line 3, in <module>
for line in imput():
^^^^^
NameError: name 'imput' is not defined. Did you mean: 'input'?
| |
s779167635 | p02417 | u654414650 | 1496295251 | Python | Python3 | py | Runtime Error | 0 | 0 | 423 | #coding:utf-8
import sys
mo =" "
moji_m =""
while mo != "":
mo = input().rstrip()
moji_m += mo
moji = list(moji_m.lower())
moji_l = list("abcdefghijklmnopqrstuvwxyz")
moji_c = [0 for i in range(26)]
for i in moji:
#??¢??????????????????????????????
if i.isalpha() == False:
pass
else:
... | Traceback (most recent call last):
File "/tmp/tmpw7n492ip/tmpi64muls1.py", line 6, in <module>
mo = input().rstrip()
^^^^^^^
EOFError: EOF when reading a line
| |
s663362434 | p02417 | u650790815 | 1496635825 | Python | Python3 | py | Runtime Error | 0 | 0 | 197 | import sys,string
lines = []
for line in sys.stdin:
lines.append(line.lower().split())
text = ''.join(lines)
for char in string.ascii_lowercase:
print('{}:{}'.format(char,text.count(char))) | a:0
b:0
c:0
d:0
e:0
f:0
g:0
h:0
i:0
j:0
k:0
l:0
m:0
n:0
o:0
p:0
q:0
r:0
s:0
t:0
u:0
v:0
w:0
x:0
y:0
z:0
| |
s640475282 | p02417 | u650790815 | 1496644164 | Python | Python3 | py | Runtime Error | 0 | 0 | 130 | s =''.join(inpu().lower().split())
import string
for char in string.ascii_lowercase:
print('{}:{}'.format(char,s.count(char))) | Traceback (most recent call last):
File "/tmp/tmpge_8x8hd/tmp8ijef_5e.py", line 1, in <module>
s =''.join(inpu().lower().split())
^^^^
NameError: name 'inpu' is not defined. Did you mean: 'input'?
| |
s073860001 | p02417 | u203261375 | 1497178418 | Python | Python3 | py | Runtime Error | 0 | 0 | 235 | charas = 'abcdefghijklmnopqrstuvwxyz'
for line in sys.stdin:
data.appen(line)
for chara in chara:
for row in data:
cnt = row.count(chara)
cnt += row.count(chara.upper())
print('{} : {}'.format(chara, cnt)) | Traceback (most recent call last):
File "/tmp/tmpkb5nmdp4/tmpu2ejxhh0.py", line 4, in <module>
for line in sys.stdin:
^^^
NameError: name 'sys' is not defined
| |
s000616357 | p02417 | u203261375 | 1497178926 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | import sys
charas = 'abcdefghijklmnopqrstuvwxyz'
for line in sys.stdin:
data.appen(line)
for chara in chara:
for row in data:
cnt = row.count(chara)
cnt += row.count(chara.upper())
print('{} : {}'.format(chara, cnt)) | Traceback (most recent call last):
File "/tmp/tmpe744n7g_/tmpt4rl0lg0.py", line 7, in <module>
for chara in chara:
^^^^^
NameError: name 'chara' is not defined. Did you mean: 'charas'?
| |
s971286590 | p02417 | u203261375 | 1497179056 | Python | Python3 | py | Runtime Error | 0 | 0 | 257 | import sys
charas = 'abcdefghijklmnopqrstuvwxyz'
data = []
for line in sys.stdin:
data.append(line)
for chara in chara:
for row in data:
cnt = row.count(chara)
cnt += row.count(chara.upper())
print('{} : {}'.format(chara, cnt)) | Traceback (most recent call last):
File "/tmp/tmpyltagmxb/tmpjs5_s5ss.py", line 8, in <module>
for chara in chara:
^^^^^
NameError: name 'chara' is not defined. Did you mean: 'charas'?
| |
s303421299 | p02417 | u821624310 | 1497444722 | Python | Python3 | py | Runtime Error | 0 | 0 | 262 | while True:
S = input().lower()
a = [0 for i in range(26)]
for c in S:
if ord(c) >= 97\
and ord(c) <= 122:
i = ord(c) - 97
a[i] += 1
for i in range(26):
print("{0} : {1}".format(chr(i + 97), a[i])) | Traceback (most recent call last):
File "/tmp/tmpj9vus5zb/tmp_v97lsjj.py", line 2, in <module>
S = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s553112333 | p02417 | u821624310 | 1497448612 | Python | Python3 | py | Runtime Error | 0 | 0 | 287 | import sys
while True:
S = sys.stdin.readlines().lower()
a = [0 for i in range(26)]
for c in S:
if ord(c) >= 97\
and ord(c) <= 122:
i = ord(c) - 97
a[i] += 1
for i in range(26):
print("{0} : {1}".format(chr(i + 97), a[i])) | Traceback (most recent call last):
File "/tmp/tmp3jul1kll/tmpqdj_hmpp.py", line 3, in <module>
S = sys.stdin.readlines().lower()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'lower'
| |
s425615493 | p02417 | u299798926 | 1499301461 | Python | Python3 | py | Runtime Error | 0 | 0 | 258 | while 1 :
x= [i for i in input()]
s=[int(0) for i in range(26)]
for i in range(len(x)):
if 97<=ord(x[i].lower())<=122:
s[ord(x[i].lower())-97]=s[ord(x[i].lower())-97]+1
for i in range(26):
print(chr(97+i),":",s[i]) | Traceback (most recent call last):
File "/tmp/tmpldl9hm7w/tmp7tr38ydq.py", line 2, in <module>
x= [i for i in input()]
^^^^^^^
EOFError: EOF when reading a line
| |
s138839159 | p02417 | u299798926 | 1499302662 | Python | Python3 | py | Runtime Error | 0 | 0 | 272 | s=[int(0) for i in range(26)]
while 1:
x=[i for i in input()]
if not x:
break
for i in range(len(x)):
if 97<=ord(x[i].lower())<=122:
s[ord(x[i].lower())-97]=s[ord(x[i].lower())-97]+1
for i in range(26):
print(chr(97+i),":",s[i]) | Traceback (most recent call last):
File "/tmp/tmpxulxjydj/tmpejwzmsj8.py", line 3, in <module>
x=[i for i in input()]
^^^^^^^
EOFError: EOF when reading a line
| |
s739013203 | p02417 | u299798926 | 1499303178 | Python | Python3 | py | Runtime Error | 0 | 0 | 273 | s=[int(0) for i in range(26)]
while 1:
x=[i for i in input()]
if x==EOF:
break
for i in range(len(x)):
if 97<=ord(x[i].lower())<=122:
s[ord(x[i].lower())-97]=s[ord(x[i].lower())-97]+1
for i in range(26):
print(chr(97+i),":",s[i]) | Traceback (most recent call last):
File "/tmp/tmp8adqeofz/tmp8h_lmaz2.py", line 3, in <module>
x=[i for i in input()]
^^^^^^^
EOFError: EOF when reading a line
| |
s531191724 | p02417 | u299798926 | 1499399051 | Python | Python3 | py | Runtime Error | 0 | 0 | 265 | s=[int(0) for i in range(26)]
x=input()
while x:
for i in range(len(list(x))):
if 97<=ord(list(x)[i].lower())<=122:
s[ord(list(x)[i].lower())-97]=s[ord(list(x)[i].lower())-97]+1
x=input()
for i in range(26):
print(chr(97+i),":",s[i]) | Traceback (most recent call last):
File "/tmp/tmpdxvugb1u/tmpy4b86pp1.py", line 2, in <module>
x=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s877989179 | p02417 | u299798926 | 1499400588 | Python | Python3 | py | Runtime Error | 0 | 0 | 264 | s=[int(0) for i in range(26)]
for s in input():
x=input()
for i in range(len(list(x))):
if 97<=ord(list(x)[i].lower())<=122:
s[ord(list(x)[i].lower())-97]=s[ord(list(x)[i].lower())-97]+1
for i in range(26):
print(chr(97+i),":",s[i]) | Traceback (most recent call last):
File "/tmp/tmpqo3todl0/tmpu2wlmwyq.py", line 2, in <module>
for s in input():
^^^^^^^
EOFError: EOF when reading a line
| |
s199678813 | p02417 | u299798926 | 1499400818 | Python | Python3 | py | Runtime Error | 0 | 0 | 316 | s=[int(0) for i in range(26)]
for s in input():
x=input()
if x[len(list(x))-1]=='EOF':
break
for i in range(len(list(x))):
if 97<=ord(list(x)[i].lower())<=122:
s[ord(list(x)[i].lower())-97]=s[ord(list(x)[i].lower())-97]+1
for i in range(26):
print(chr(97+i),":",s[i]) | Traceback (most recent call last):
File "/tmp/tmp8t29zekb/tmpumj5y2pm.py", line 2, in <module>
for s in input():
^^^^^^^
EOFError: EOF when reading a line
| |
s647656710 | p02417 | u264972437 | 1499773038 | Python | Python3 | py | Runtime Error | 0 | 0 | 266 | from string import ascii_lowercase as letters
data = ''
while True:
temp = input()
if temp == '':
break
else:
data += temp.lower()
num = [data.count(s) for s in letters]
ans = '\n'.join(['{0} : {1}'.format(s,n) for s,n in zip(list(letters),num)])
print(ans) | Traceback (most recent call last):
File "/tmp/tmpcemykivi/tmpyp98d1jw.py", line 5, in <module>
temp = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s614783850 | p02417 | u264972437 | 1499776433 | Python | Python3 | py | Runtime Error | 0 | 0 | 266 | from string import ascii_lowercase as letters
data = ''
while True:
temp = input()
if temp == '':
break
else:
data += temp.lower()
num = [data.count(s) for s in letters]
ans = '\n'.join(['{0} : {1}'.format(s,n) for s,n in zip(list(letters),num)])
print(ans) | Traceback (most recent call last):
File "/tmp/tmp407jqqew/tmp5f6vp41o.py", line 5, in <module>
temp = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s540191075 | p02417 | u264972437 | 1499777057 | Python | Python3 | py | Runtime Error | 0 | 0 | 266 | from string import ascii_lowercase as letters
data = ''
while True:
temp = input()
if temp == '':
break
else:
data += temp.lower()
num = [data.count(s) for s in letters]
ans = '\n'.join(['{0} : {1}'.format(s,n) for s,n in zip(list(letters),num)])
print(ans) | Traceback (most recent call last):
File "/tmp/tmp68nhlyml/tmpxdfgliyx.py", line 5, in <module>
temp = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s454539987 | p02417 | u264972437 | 1499780921 | Python | Python3 | py | Runtime Error | 0 | 0 | 266 | from string import ascii_lowercase as letters
data = ''
while True:
temp = input()
if temp == '':
break
else:
data += temp.lower()
num = [data.count(s) for s in letters]
ans = '\n'.join(['{0} : {1}'.format(s,n) for s,n in zip(list(letters),num)])
print(ans) | Traceback (most recent call last):
File "/tmp/tmp91_mli5z/tmpxdwh_5ph.py", line 5, in <module>
temp = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s062402617 | p02417 | u264972437 | 1499781990 | Python | Python3 | py | Runtime Error | 0 | 0 | 283 | from string import ascii_lowercase as letters
data = ''
while True:
temp = input()
if temp == '':
break
else:
data += temp.lower()
'''
num = [data.count(s) for s in letters]
ans = '\n'.join(['{0} : {1}'.format(s,n) for s,n in zip(list(letters),num)])
print(ans)
'''
print('') | Traceback (most recent call last):
File "/tmp/tmpmy7plwxn/tmpw1lduwbr.py", line 5, in <module>
temp = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s020169973 | p02417 | u582608581 | 1500160265 | Python | Python3 | py | Runtime Error | 0 | 0 | 147 | try:
s = ''
while True:
s = s + input().lower()
except EOFError:
[print(chr(o)+' : '+str(s.count(chr(o)))) for o in range(ord('a'),ord('z')+1)] | File "/tmp/tmpray7l02p/tmppm43s3tx.py", line 6
[print(chr(o)+' : '+str(s.count(chr(o)))) for o in range(ord('a'),ord('z')+1)]
^
IndentationError: expected an indented block after 'except' statement on line 5
| |
s168024237 | p02417 | u663910047 | 1500268157 | Python | Python3 | py | Runtime Error | 0 | 0 | 252 | t="1"
T=""
while t is not "":
t=input()
T += t
l=[chr(i) for i in range(97, 97+26)]
L=[chr(i) for i in range(65, 65+26)]
print (l,L)
n=0
for i in range(len(L)):
n = T.count(str(L[i]))+T.count(str(l[i]))
print(str(l[i])+" : "+str(n)) | /tmp/tmpgsawwjlw/tmpx60aglh4.py:3: SyntaxWarning: "is not" with a literal. Did you mean "!="?
while t is not "":
/tmp/tmpgsawwjlw/tmpx60aglh4.py:3: SyntaxWarning: "is not" with a literal. Did you mean "!="?
while t is not "":
Traceback (most recent call last):
File "/tmp/tmpgsawwjlw/tmpx60aglh4.py", line 4, in <m... | |
s380476016 | p02417 | u914146430 | 1500362461 | Python | Python3 | py | Runtime Error | 0 | 0 | 242 | import sys
input_line = sys.stdin.readline()
ch=['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']
sl=input_line.lower()
for c in ch:
print("{} : {}".format(c,s.count(c))) | Traceback (most recent call last):
File "/tmp/tmp73gl88ze/tmppwzkp4xa.py", line 11, in <module>
print("{} : {}".format(c,s.count(c)))
^
NameError: name 's' is not defined. Did you mean: 'sl'?
| |
s526486775 | p02417 | u914146430 | 1500362644 | Python | Python3 | py | Runtime Error | 0 | 0 | 238 | import sys
input_line = sys.stdin.read()
ch=['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']
sl=input_line.lower()
for c in ch:
print("{} : {}".format(c,s.count(c))) | Traceback (most recent call last):
File "/tmp/tmpcm38ref7/tmp0qfwn23n.py", line 11, in <module>
print("{} : {}".format(c,s.count(c)))
^
NameError: name 's' is not defined. Did you mean: 'sl'?
| |
s159185146 | p02417 | u605879293 | 1500908381 | Python | Python3 | py | Runtime Error | 0 | 0 | 176 | from collections import Counter
while True:
c = Counter(input().lower())
if not c:
break
for i in iter("abcdefghijklmnopqrstuvwxyz"):
print("{0} : {1}".format(i, c[i])) | Traceback (most recent call last):
File "/tmp/tmp4260wk7y/tmpv_5gptfg.py", line 4, in <module>
c = Counter(input().lower())
^^^^^^^
EOFError: EOF when reading a line
| |
s706506621 | p02417 | u605879293 | 1500908456 | Python | Python3 | py | Runtime Error | 0 | 0 | 176 | from collections import Counter
while True:
c = Counter(input().lower())
if not c:
break
for i in iter("abcdefghijklmnopqrstuvwxyz"):
print("{0} : {1}".format(i, c[i])) | Traceback (most recent call last):
File "/tmp/tmpeaw0__aq/tmpl2751th6.py", line 4, in <module>
c = Counter(input().lower())
^^^^^^^
EOFError: EOF when reading a line
| |
s471479661 | p02417 | u354053070 | 1501387201 | Python | Python3 | py | Runtime Error | 0 | 0 | 165 | import sys
Target = ""
for line in sys.stdin.readlines:
Target += line.rstrip("\r\n")
for i in range(26):
print(chr(i + 97), ":", Target.count(chr(i + 97))) | Traceback (most recent call last):
File "/tmp/tmprnwol0t8/tmpsaomsmfo.py", line 4, in <module>
for line in sys.stdin.readlines:
TypeError: 'builtin_function_or_method' object is not iterable
| |
s571147280 | p02417 | u821624310 | 1502329809 | Python | Python3 | py | Runtime Error | 0 | 0 | 195 | a = {chr(i): 0 for i in range(97, 123)}
print(a)
while 1:
s = input().lower()
for c in s:
if c in a:
a[c] += 1
for c in a:
print("{} : {}".format(c, a[c])) | Traceback (most recent call last):
File "/tmp/tmpca5kj087/tmprd0e6hik.py", line 4, in <module>
s = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0, 'i': 0, 'j': 0, 'k': 0, 'l': 0, 'm': 0, 'n': 0, 'o': 0, 'p': 0, 'q': 0, 'r': 0, 's': 0, 't': 0, 'u': 0, 'v': 0, 'w': 0, 'x': 0, 'y': 0, 'z': 0}
|
s613674036 | p02417 | u821624310 | 1502329983 | Python | Python3 | py | Runtime Error | 0 | 0 | 186 | a = {chr(i): 0 for i in range(97, 123)}
while 1:
s = input().lower()
for c in s:
if c in a:
a[c] += 1
for c in a:
print("{} : {}".format(c, a[c])) | Traceback (most recent call last):
File "/tmp/tmp3sjer_6j/tmpyz0azfcy.py", line 3, in <module>
s = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s611144134 | p02417 | u954858867 | 1502791049 | Python | Python | py | Runtime Error | 0 | 0 | 264 | l = 'abcdefghijklmnopqrstuvwxyz'
mp = [0 for _ in list(l)]
while True:
in_data = list(filter(lambda x: 97 <= ord(x) <= 122 , raw_input().lower()))
for s in in_data:
mp[ord(s) - 97] += 1
for i,j in zip(l, mp):
print "%s : %s" % (i, j) | File "/tmp/tmp92gdbxuw/tmpf8n2u2bi.py", line 11
print "%s : %s" % (i, j)
^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s419693395 | p02417 | u283452598 | 1503196782 | Python | Python3 | py | Runtime Error | 0 | 0 | 219 | table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
x = input().lower()
for i in x:
if i in table2:
table2[i] += 1
for m,n in table2.items():
print("{0} : {1}".format(m,n)) | Traceback (most recent call last):
File "/tmp/tmp4yf4w3un/tmpxxdqzb2k.py", line 3, in <module>
x = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s846257687 | p02417 | u283452598 | 1503196810 | Python | Python3 | py | Runtime Error | 0 | 0 | 251 | table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
x = input().lower()
if x == None:
break
for i in x:
if i in table2:
table2[i] += 1
for m,n in table2.items():
print("{0} : {1}".format(m,n)) | Traceback (most recent call last):
File "/tmp/tmp2n17yy9g/tmp5yl_3sc5.py", line 3, in <module>
x = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s480599805 | p02417 | u283452598 | 1503196824 | Python | Python3 | py | Runtime Error | 0 | 0 | 249 | table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
x = input().lower()
if x == "":
break
for i in x:
if i in table2:
table2[i] += 1
for m,n in table2.items():
print("{0} : {1}".format(m,n)) | Traceback (most recent call last):
File "/tmp/tmpp4a7b3yd/tmp4oyahdfh.py", line 3, in <module>
x = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s161215050 | p02417 | u283452598 | 1503196931 | Python | Python3 | py | Runtime Error | 0 | 0 | 249 | table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
x = input().lower()
if x == "":
break
for i in x:
if i in table2:
table2[i] += 1
for m,n in table2.items():
print("{0} : {1}".format(m,n)) | Traceback (most recent call last):
File "/tmp/tmph7_lvpjm/tmpe0miw729.py", line 3, in <module>
x = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s638766087 | p02417 | u283452598 | 1503197402 | Python | Python3 | py | Runtime Error | 0 | 0 | 254 | table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
x = str(input().lower())
if x == "":
break
for i in x:
if i in table2:
table2[i] += 1
for m,n in table2.items():
print("{0} : {1}".format(m,n)) | Traceback (most recent call last):
File "/tmp/tmp_9c6j8ko/tmpt_62zycf.py", line 3, in <module>
x = str(input().lower())
^^^^^^^
EOFError: EOF when reading a line
| |
s392774030 | p02417 | u283452598 | 1503197418 | Python | Python3 | py | Runtime Error | 0 | 0 | 257 | table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
x = str(input().lower())
if x == False:
break
for i in x:
if i in table2:
table2[i] += 1
for m,n in table2.items():
print("{0} : {1}".format(m,n)) | Traceback (most recent call last):
File "/tmp/tmpxvy6lofx/tmpewyuw3se.py", line 3, in <module>
x = str(input().lower())
^^^^^^^
EOFError: EOF when reading a line
| |
s691352095 | p02417 | u283452598 | 1503197433 | Python | Python3 | py | Runtime Error | 0 | 0 | 225 | table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while x:
x = str(input().lower())
for i in x:
if i in table2:
table2[i] += 1
for m,n in table2.items():
print("{0} : {1}".format(m,n)) | Traceback (most recent call last):
File "/tmp/tmp0szwm32q/tmpcnhg8cg0.py", line 2, in <module>
while x:
^
NameError: name 'x' is not defined
| |
s027122746 | p02417 | u283452598 | 1503197517 | Python | Python3 | py | Runtime Error | 0 | 0 | 248 | table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
x = input()
if x == "":
break
for i in x.lower():
if i in table2:
table2[i] += 1
for m,n in table2.items():
print("{0} : {1}".format(m,n)) | Traceback (most recent call last):
File "/tmp/tmpop82fxgw/tmpderg9lci.py", line 3, in <module>
x = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s420906911 | p02417 | u283452598 | 1503197558 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | table2 = {n:0 for n in "abcdefghijklmnopqrstuvwxyz"}
while True:
x = input()
if not x:
break
for i in x.lower():
if i in table2:
table2[i] += 1
for m,n in table2.items():
print("{0} : {1}".format(m,n)) | Traceback (most recent call last):
File "/tmp/tmpywipyrli/tmp7cc0wvct.py", line 3, in <module>
x = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s995537427 | p02417 | u105694406 | 1504156490 | Python | Python3 | py | Runtime Error | 0 | 0 | 399 | import sys
string = str()
for line in sys.stdin:
string += line.lower()
string = input().lower()
alph = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
for letter in alph:
sum = 0
n = -1
while True:
n = string.find(letter,... | Traceback (most recent call last):
File "/tmp/tmppczjkvd2/tmp8kh_05fn.py", line 8, in <module>
string = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s680843309 | p02417 | u956226421 | 1504757163 | Python | Python3 | py | Runtime Error | 0 | 0 | 519 | alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
cnt = 26 * [0]
Input = ""
while True:
I = input()
if I == '':
break
Input += I
for i1 in range(len(alphabet)):
for i2 in range(len(Input)):
if '... | Traceback (most recent call last):
File "/tmp/tmpho519hyt/tmp08k_brsx.py", line 6, in <module>
I = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s715060826 | p02417 | u956226421 | 1504757574 | Python | Python3 | py | Runtime Error | 20 | 7512 | 563 | alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
cnt = 26 * [0]
Input = ""
loop = True
while loop:
I = input()
for i in I:
if i == '.':
loop = False
Input += I
for i1 in range(len(alphabet)):
... | Traceback (most recent call last):
File "/tmp/tmppfvdbzj7/tmpxvc305bx.py", line 7, in <module>
I = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s328481640 | p02417 | u956226421 | 1504757733 | Python | Python3 | py | Runtime Error | 0 | 0 | 563 | alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
cnt = 26 * [0]
Input = ""
loop = True
while loop:
I = input()
for i in I:
if I == '.':
loop = False
Input += I
for i1 in range(len(alphabet)):
... | Traceback (most recent call last):
File "/tmp/tmpcowou0cq/tmp2gbc0013.py", line 7, in <module>
I = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s536316515 | p02417 | u956226421 | 1504757792 | Python | Python3 | py | Runtime Error | 0 | 0 | 538 | alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
cnt = 26 * [0]
Input = ""
loop = True
while loop:
I = input()
if I == '':
loop = False
Input += I
for i1 in range(len(alphabet)):
for i2 in range(len(In... | Traceback (most recent call last):
File "/tmp/tmph8sld2nt/tmpxteg4wzc.py", line 7, in <module>
I = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s734825807 | p02417 | u956226421 | 1504757987 | Python | Python3 | py | Runtime Error | 0 | 0 | 536 | alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
cnt = 26 * [0]
Input = ""
loop = True
while loop:
I = input()
if not I:
loop = False
Input += I
for i1 in range(len(alphabet)):
for i2 in range(len(Inpu... | Traceback (most recent call last):
File "/tmp/tmp42ikkhry/tmpg_nll0s4.py", line 7, in <module>
I = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s552633138 | p02417 | u666221014 | 1505101956 | Python | Python3 | py | Runtime Error | 0 | 0 | 209 | cnt_dict = { key:0 for key in "abcdefghijklmnopqrstuvwxyz"}
string = input().lower()
for i in string:
if i == " ": continue
cnt_dict[i] += 1
for i in cnt_dict:
print( i + " : " + str(cnt_dict[i]) ) | Traceback (most recent call last):
File "/tmp/tmp49xi503k/tmpvwbk904z.py", line 2, in <module>
string = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s129481401 | p02417 | u933096856 | 1505662252 | Python | Python3 | py | Runtime Error | 0 | 0 | 1005 | a=[0]*26
w='abcdefghijklmnopqrstuvwxyz'
s=list(input().upper())
for i in s:
if i=='A':
a[0]+=1
elif i=='B':
a[1]+=1
elif i=='C':
a[2]+=1
elif i=='D':
a[3]+=1
elif i=='E':
a[4]+=1
elif i=='F':
a[5]+=1
elif i=='G':
a[6]+=1
elif i=='H'... | File "/tmp/tmpik0gvufg/tmp_rx1ilpp.py", line 58
print('w[i:i+1], ':', str(a[i]))
^
SyntaxError: unterminated string literal (detected at line 58)
| |
s088411410 | p02417 | u933096856 | 1505662597 | Python | Python3 | py | Runtime Error | 0 | 0 | 2089 | 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
e... | File "/tmp/tmp0h8z97td/tmpsj99vb5y.py", line 21
elif i=='H':
^^^^
SyntaxError: invalid syntax
| |
s651585372 | p02417 | u933096856 | 1505662641 | Python | Python3 | py | Runtime Error | 0 | 0 | 1229 | 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
e... | File "/tmp/tmp24cgojqa/tmp4ojklw02.py", line 21
elif i=='H':
^^^^
SyntaxError: invalid syntax
| |
s294820832 | p02417 | u664228906 | 1507719502 | Python | Python3 | py | Runtime Error | 0 | 0 | 217 | 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) | Traceback (most recent call last):
File "/tmp/tmpc7n914xt/tmp4yem1kzl.py", line 12, in <module>
for key, val in alf:
^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
| |
s549824905 | p02417 | u664228906 | 1507719695 | Python | Python3 | py | Runtime Error | 0 | 0 | 228 | 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) | Traceback (most recent call last):
File "/tmp/tmpjye2aaa2/tmpk0hman9g.py", line 13, in <module>
print(key + " : " + val)
~~~~^~~~~~~
TypeError: unsupported operand type(s) for +: 'int' and 'str'
| |
s973837813 | p02417 | u664228906 | 1507719889 | Python | Python3 | py | Runtime Error | 0 | 0 | 234 | 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) | Traceback (most recent call last):
File "/tmp/tmppi15cnyb/tmp2njzfkmm.py", line 13, in <module>
print(key + " : " + val)
~~~~^~~~~~~
TypeError: unsupported operand type(s) for +: 'int' and 'str'
| |
s741330238 | p02417 | u474232743 | 1508469985 | Python | Python3 | py | Runtime Error | 0 | 0 | 229 | 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])) | Traceback (most recent call last):
File "/tmp/tmp91w2vnps/tmpndu2aps0.py", line 4, in <module>
s = list(input().lower())
^^^^^^^
EOFError: EOF when reading a line
| |
s111859819 | p02417 | u518939641 | 1510306912 | Python | Python3 | py | Runtime Error | 30 | 7416 | 212 | 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]) | Traceback (most recent call last):
File "/tmp/tmp9kjvmqbw/tmpzbnxszeb.py", line 6, in <module>
s+=input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s591987412 | p02417 | u518939641 | 1510307024 | Python | Python3 | py | Runtime Error | 20 | 7420 | 212 | 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]) | Traceback (most recent call last):
File "/tmp/tmp7ov6v8b3/tmpu51fyw17.py", line 6, in <module>
s+=input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s298143481 | p02417 | u617472286 | 1510583934 | Python | Python3 | py | Runtime Error | 0 | 0 | 257 | 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])) | Traceback (most recent call last):
File "/tmp/tmpimiqlgei/tmpj5_43m2m.py", line 5, in <module>
line = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s984001867 | p02417 | u617472286 | 1510583952 | Python | Python3 | py | Runtime Error | 0 | 0 | 257 | 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])) | Traceback (most recent call last):
File "/tmp/tmp7lqp8uuw/tmp8u5f5s46.py", line 5, in <module>
line = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s722429771 | p02417 | u488038316 | 1511415117 | Python | Python3 | py | Runtime Error | 0 | 0 | 451 | # -*-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:
... | Traceback (most recent call last):
File "/tmp/tmpb2b4urbj/tmp10q9buca.py", line 24, in <module>
main()
File "/tmp/tmpb2b4urbj/tmp10q9buca.py", line 11, in main
inputChar = list(line.lower())
^^^^
NameError: name 'line' is not defined. Did you mean: 'slice'?
| |
s536414164 | p02417 | u744506422 | 1511942673 | Python | Python3 | py | Runtime Error | 0 | 0 | 252 | 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])) | Traceback (most recent call last):
File "/tmp/tmpkuocfk19/tmpnj2u_dps.py", line 4, in <module>
st=input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s050345815 | p02417 | u744506422 | 1511942728 | Python | Python3 | py | Runtime Error | 0 | 0 | 252 | 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])) | Traceback (most recent call last):
File "/tmp/tmplbxo71rg/tmpd7mvoxqe.py", line 4, in <module>
st=input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s140494281 | p02417 | u150984829 | 1513232666 | Python | Python3 | py | Runtime Error | 20 | 5572 | 111 | while 1:
a=list(input().lower())
[print(chr(97+i),':',a.count(chr(97+i)))for i in range(26)]
if'.'in a:break | Traceback (most recent call last):
File "/tmp/tmpj8numx9f/tmp7y7fhakv.py", line 2, in <module>
a=list(input().lower())
^^^^^^^
EOFError: EOF when reading a line
| |
s328898708 | p02417 | u017523606 | 1514618593 | Python | Python3 | py | Runtime Error | 0 | 0 | 190 | 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))) | Traceback (most recent call last):
File "/tmp/tmpesqu5av7/tmpftq3qtgc.py", line 2, in <module>
words = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s568160608 | p02417 | u017523606 | 1514618718 | Python | Python3 | py | Runtime Error | 0 | 0 | 224 | 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 | File "/tmp/tmpkf_05h03/tmpf5dey5f2.py", line 4
if words
^
SyntaxError: expected ':'
| |
s866583917 | p02417 | u426534722 | 1515772581 | Python | Python3 | py | Runtime Error | 0 | 0 | 150 | import sys
from collections import Counter
m = Counter(sys.stdin.readlines().lower())
for i in 'abcdefghijklmnopqrstuvwxyz':
print(i, ":", m[i])
| Traceback (most recent call last):
File "/tmp/tmpku1m5rs8/tmpuyg710ut.py", line 3, in <module>
m = Counter(sys.stdin.readlines().lower())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'lower'
| |
s073729752 | p02417 | u426534722 | 1515772651 | Python | Python3 | py | Runtime Error | 0 | 0 | 168 | import sys
from collections import Counter
m = Counter(sys.stdin.readlines().replace("\n", "").lower())
for i in 'abcdefghijklmnopqrstuvwxyz':
print(i, ":", m[i])
| Traceback (most recent call last):
File "/tmp/tmpcgh95f27/tmpbsytekr4.py", line 3, in <module>
m = Counter(sys.stdin.readlines().replace("\n", "").lower())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'replace'
| |
s773618779 | p02417 | u426534722 | 1515772818 | Python | Python3 | py | Runtime Error | 0 | 0 | 162 | 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])
| Traceback (most recent call last):
File "/tmp/tmpm92hdeqc/tmpv1y_to3t.py", line 4, in <module>
for s in sys.stdin():
^^^^^^^^^^^
TypeError: '_io.TextIOWrapper' object is not callable
| |
s208673774 | p02417 | u426534722 | 1515773015 | Python | Python3 | py | Runtime Error | 0 | 0 | 121 | s = sys.stdin.readlines().replace("\n", "").lower()
for i in 'abcdefghijklmnopqrstuvwxyz':
print(i, ":", s.count(i))
| Traceback (most recent call last):
File "/tmp/tmph78rfvlp/tmpy93loa7k.py", line 1, in <module>
s = sys.stdin.readlines().replace("\n", "").lower()
^^^
NameError: name 'sys' is not defined
| |
s195314979 | p02417 | u426534722 | 1515773027 | Python | Python3 | py | Runtime Error | 0 | 0 | 132 | import sys
s = sys.stdin.readlines().replace("\n", "").lower()
for i in 'abcdefghijklmnopqrstuvwxyz':
print(i, ":", s.count(i))
| Traceback (most recent call last):
File "/tmp/tmprxewx1zw/tmpg2zp4gbx.py", line 2, in <module>
s = sys.stdin.readlines().replace("\n", "").lower()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'replace'
| |
s575758102 | p02417 | u426534722 | 1515773040 | Python | Python3 | py | Runtime Error | 0 | 0 | 114 | import sys
s = sys.stdin.readlines().lower()
for i in 'abcdefghijklmnopqrstuvwxyz':
print(i, ":", s.count(i))
| Traceback (most recent call last):
File "/tmp/tmp5fwrsssy/tmpxcbdt2c0.py", line 2, in <module>
s = sys.stdin.readlines().lower()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'lower'
| |
s223630705 | p02417 | u426534722 | 1515773748 | Python | Python3 | py | Runtime Error | 0 | 0 | 149 | import sys
from collections import Counter
m = Counter(sys.stdin.readlines().lower())
for i in 'abcdefghijklmnopqrstuvwxyz':
print(i, ":", m[i])
| Traceback (most recent call last):
File "/tmp/tmpzcwpqrk8/tmp3yx_x8rk.py", line 3, in <module>
m = Counter(sys.stdin.readlines().lower())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'lower'
| |
s946280702 | p02417 | u426534722 | 1515773761 | Python | Python3 | py | Runtime Error | 0 | 0 | 147 | import sys
from collections import Counter
m = Counter(sys.stdin.readlines.lower())
for i in 'abcdefghijklmnopqrstuvwxyz':
print(i, ":", m[i])
| Traceback (most recent call last):
File "/tmp/tmppxfiw7z3/tmp2dii5xow.py", line 3, in <module>
m = Counter(sys.stdin.readlines.lower())
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'builtin_function_or_method' object has no attribute 'lower'
| |
s900646841 | p02417 | u426534722 | 1515773768 | Python | Python3 | py | Runtime Error | 0 | 0 | 142 | import sys
from collections import Counter
m = Counter(sys.stdin.read.lower())
for i in 'abcdefghijklmnopqrstuvwxyz':
print(i, ":", m[i])
| Traceback (most recent call last):
File "/tmp/tmp5tm3wsa4/tmpa13w_zro.py", line 3, in <module>
m = Counter(sys.stdin.read.lower())
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'builtin_function_or_method' object has no attribute 'lower'
| |
s829338737 | p02417 | u661529494 | 1515997413 | Python | Python3 | py | Runtime Error | 0 | 0 | 353 | 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... | File "/tmp/tmp6zxmmqxt/tmpffnxgq2p.py", line 1
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... | |
s181819760 | p02417 | u661529494 | 1515997492 | Python | Python3 | py | Runtime Error | 0 | 0 | 147 | s = '' while True: try: s += input().lower() except EOFError: break for c in 'abcdefghijklmnopqrstuvwxyz': print('{} : {}'.format(c, s.count(c)))
| File "/tmp/tmpsj6i772z/tmpg5l7u_mt.py", line 1
s = '' while True: try: s += input().lower() except EOFError: break for c in 'abcdefghijklmnopqrstuvwxyz': print('{} : {}'.format(c, s.count(c)))
^^^^^
SyntaxError: invalid syntax
| |
s721199089 | p02417 | u146752763 | 1516704316 | Python | Python | py | Runtime Error | 0 | 0 | 282 | # 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)
| File "/tmp/tmpcm9o2o7d/tmpol86baeo.py", line 11
print "%s : %d" % (key,value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s951943533 | p02417 | u770698847 | 1516860226 | Python | Python | py | Runtime Error | 0 | 0 | 366 | # 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 "... | File "/tmp/tmpr8ud3x8w/tmp25r_pl0c.py", line 14
print "{0} : {1}".format(alfa_list[i],count_list[i])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s953636429 | p02417 | u088372268 | 1517292408 | Python | Python3 | py | Runtime Error | 0 | 0 | 368 | 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_di... | Traceback (most recent call last):
File "/tmp/tmp14m5wz3o/tmpdav5ufis.py", line 3, in <module>
str_in = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s393873469 | p02417 | u088372268 | 1517294122 | Python | Python3 | py | Runtime Error | 0 | 0 | 445 | #! 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... | Traceback (most recent call last):
File "/tmp/tmpx7tcimep/tmp1ab7nnoc.py", line 6, in <module>
str_in = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s734502062 | p02417 | u179070318 | 1517646700 | Python | Python3 | py | Runtime Error | 0 | 0 | 163 | word = ''
while True:
w = input().lower()
if w == '':
break
else:
word += w
for a in alphabet:
print(a+':'+str(word.count(a)))
| Traceback (most recent call last):
File "/tmp/tmp12ythyyk/tmpjytaxwyx.py", line 3, in <module>
w = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s241640401 | p02417 | u313021086 | 1518626997 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | 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
| /tmp/tmp038eiqn_/tmpz4uqfjn2.py:4: SyntaxWarning: "is" with a literal. Did you mean "=="?
if(data is ""):
Traceback (most recent call last):
File "/tmp/tmp038eiqn_/tmpz4uqfjn2.py", line 3, in <module>
data = input().lower()
^^^^^^^
EOFError: EOF when reading a line
| |
s257590004 | p02417 | u313021086 | 1518627094 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | 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
| /tmp/tmp2rokh9g4/tmp4hudufqu.py:4: SyntaxWarning: "is" with a literal. Did you mean "=="?
if(data is ""):
Traceback (most recent call last):
File "/tmp/tmp2rokh9g4/tmp4hudufqu.py", line 3, in <module>
data = input().lower()
^^^^^^^
EOFError: EOF when reading a line
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.