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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s675771042 | p02415 | u017764209 | 1420628595 | Python | Python | py | Runtime Error | 0 | 0 | 151 | x = raw_input()
for a in list(str):
if a.islower():
print a.upper()
elif a.isupper():
print a.lower()
else
print a | File "/tmp/tmpuz669zzn/tmpqp55dupo.py", line 5
print a.upper()
^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s972281714 | p02415 | u017764209 | 1420628764 | Python | Python | py | Runtime Error | 0 | 0 | 153 | str = raw_input()
for a in list(str):
if a.islower():
print a.upper()
elif a.isupper():
print a.lower()
else
print a | File "/tmp/tmpuz6akc7k/tmp2ynh6o1y.py", line 5
print a.upper()
^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s799084093 | p02415 | u823030818 | 1423103737 | Python | Python3 | py | Runtime Error | 0 | 0 | 261 | text = input()
for i in range(len(text)):
code = ord(text[i])
if ord('A') <= code <= ord('Z'):
result += chr(code + 32)
elif ord('a') <= code <= ord('z'):
result += chr(code - 32)
else:
result += chr(code)
print(result) | Traceback (most recent call last):
File "/tmp/tmpgvly0c5f/tmp3d1mxgd2.py", line 1, in <module>
text = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s936790336 | p02415 | u971748390 | 1431073199 | Python | Python3 | py | Runtime Error | 0 | 0 | 23 | print(input.swapcase()) | Traceback (most recent call last):
File "/tmp/tmp0bi1icmh/tmpim2cuheo.py", line 1, in <module>
print(input.swapcase())
^^^^^^^^^^^^^^
AttributeError: 'builtin_function_or_method' object has no attribute 'swapcase'
| |
s284639266 | p02415 | u604774382 | 1431685946 | Python | Python | py | Runtime Error | 0 | 0 | 49 | print( sys.stdin.readline().rstrip().swapcase() ) | Traceback (most recent call last):
File "/tmp/tmpp2dgcuua/tmpu8yo2qg4.py", line 1, in <module>
print( sys.stdin.readline().rstrip().swapcase() )
^^^
NameError: name 'sys' is not defined
| |
s931116377 | p02415 | u571345655 | 1435301896 | Python | Python | py | Runtime Error | 0 | 0 | 203 | # coding: utf-8
line = raw_input()
for s in line:
if s.isalpha():
if s.isupper():
print s.lower(),
else:
print s.upper(),
else:
print s,
else print | File "/tmp/tmpt66u6n8j/tmpxljohxc0.py", line 7
print s.lower(),
^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s576576588 | p02415 | u571345655 | 1435302018 | Python | Python | py | Runtime Error | 0 | 0 | 235 | # coding: utf-8
line = raw_input()
result = ''
for s in line:
if s.isalpha():
if s.isupper():
result += s.lower(),
else:
result += s.upper(),
else:
print result += s
print result | File "/tmp/tmpxt3ztcif/tmpuk8h631u.py", line 12
print result += s
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s834696407 | p02415 | u571345655 | 1435302043 | Python | Python | py | Runtime Error | 0 | 0 | 233 | # coding: utf-8
line = raw_input()
result = ''
for s in line:
if s.isalpha():
if s.isupper():
result += s.lower()
else:
result += s.upper()
else:
print result += s
print result | File "/tmp/tmp40ismjy_/tmpmo4rc9qv.py", line 12
print result += s
^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s975968963 | p02415 | u467309160 | 1443529193 | Python | Python3 | py | Runtime Error | 0 | 0 | 339 | using namespace std;
typedef long long ll;
int main() {
string str; getline(cin, str);
for (int i = 0; i < str.size(); ++i) {
char c = str[i];
if ('a' <= c && c <= 'z') cout << (char)(c-'a'+'A');
else if ('A' <= c && c <= 'Z') cout << (char)(c-'A'+'a');
else cout << c;
}
... | File "/tmp/tmpsoqf1xo4/tmpmsg89xrj.py", line 1
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s201733536 | p02415 | u756468156 | 1467452142 | Python | Python3 | py | Runtime Error | 0 | 0 | 190 | string = input()
for i in string:
if i.isupper():
print(i.lower(), end = "")
elif string[i].islower():
print(i.upper(), end = "")
else:
print(i, end = "") | Traceback (most recent call last):
File "/tmp/tmpj2wyjwiq/tmpp0xtpw5t.py", line 1, in <module>
string = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s217007857 | p02415 | u204883389 | 1470206492 | Python | Python3 | py | Runtime Error | 0 | 0 | 57 | s = [int(i) for i in input().split()]
print(s.swapcase()) | Traceback (most recent call last):
File "/tmp/tmp4jydz768/tmpwtvr93fi.py", line 1, in <module>
s = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s867158271 | p02415 | u204883389 | 1470206820 | Python | Python3 | py | Runtime Error | 0 | 0 | 763 | str_atog = "ABCDEFG"
str_hton = "hijklmn"
# lower(), upper()????????????????????????
print "??§??????(???) %s ????°???????(???) %s ?????????" % (str_atog, str_atog.lower())
print "?°???????(???) %s ?????§??????(???) %s ?????????" % (str_hton, str_hton.upper())
print
arr = ['And', 'Begin', 'Code', 'Double']
arr2 = ... | File "/tmp/tmppft60b1n/tmp3lvzcnjx.py", line 5
print "??§??????(???) %s ????°???????(???) %s ?????????" % (str_atog, str_atog.lower())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s715149467 | p02415 | u085472528 | 1470206956 | Python | Python3 | py | Runtime Error | 0 | 0 | 17 | .lower()
.upper() | File "/tmp/tmp5aidzo2y/tmp1t5eqv44.py", line 1
.lower()
^
SyntaxError: invalid syntax
| |
s189362968 | p02415 | u204883389 | 1470206963 | Python | Python3 | py | Runtime Error | 0 | 0 | 62 | print [str.lower() for str in]
print [str.upper() for str in] | File "/tmp/tmp3dav7l38/tmpftwdbbdq.py", line 1
print [str.lower() for str in]
^^^
SyntaxError: invalid syntax
| |
s468435234 | p02415 | u498041957 | 1470206970 | Python | Python3 | py | Runtime Error | 0 | 0 | 17 | print(input().swa | File "/tmp/tmpnouabhpd/tmpeuzi88t5.py", line 1
print(input().swa
^
SyntaxError: '(' was never closed
| |
s826456481 | p02415 | u671553883 | 1470207205 | Python | Python3 | py | Runtime Error | 0 | 0 | 45 | a = [str(i) for i in range('a, z')]
a.upper() | Traceback (most recent call last):
File "/tmp/tmp9873t65_/tmpqv9hv0g0.py", line 1, in <module>
a = [str(i) for i in range('a, z')]
^^^^^^^^^^^^^
TypeError: 'str' object cannot be interpreted as an integer
| |
s191211000 | p02415 | u628732336 | 1470207251 | Python | Python3 | py | Runtime Error | 0 | 0 | 23 | print(input).swapcase() | Traceback (most recent call last):
File "/tmp/tmp2iktj7eo/tmpzov6y771.py", line 1, in <module>
print(input).swapcase()
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'swapcase'
| <built-in function input>
|
s339270830 | p02415 | u628732336 | 1470207298 | Python | Python3 | py | Runtime Error | 0 | 0 | 23 | print(input.swapcase()) | Traceback (most recent call last):
File "/tmp/tmpe_6lpg54/tmpynqy22dl.py", line 1, in <module>
print(input.swapcase())
^^^^^^^^^^^^^^
AttributeError: 'builtin_function_or_method' object has no attribute 'swapcase'
| |
s572696863 | p02415 | u435917115 | 1470207314 | Python | Python3 | py | Runtime Error | 0 | 0 | 205 | ATK = input()
for i in range(len(ATK)):
if "a" <=ATK[i]<="z":
print(ATK[i].upper, end='')
elif "A"<=ATK[i]<="Z":
print(ATK[i].lower, end='')
else:
print(ATK[i], end='') | File "/tmp/tmp7gvugbf6/tmpprpd5fn2.py", line 7
elif "A"<=ATK[i]<="Z":
^
IndentationError: unindent does not match any outer indentation level
| |
s834189545 | p02415 | u204883389 | 1470207536 | Python | Python3 | py | Runtime Error | 0 | 0 | 18 | print(.swapcase()) | File "/tmp/tmpf4m4pzju/tmp328b1_wi.py", line 1
print(.swapcase())
^
SyntaxError: invalid syntax
| |
s464061047 | p02415 | u204883389 | 1470207667 | Python | Python3 | py | Runtime Error | 0 | 0 | 50 | print(fAIR, LATER, OCCASIONALLY CLOUDY.swapcase()) | File "/tmp/tmpbj2yzqpk/tmpmwq77f98.py", line 1
print(fAIR, LATER, OCCASIONALLY CLOUDY.swapcase())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s428672713 | p02415 | u051469504 | 1470207723 | Python | Python3 | py | Runtime Error | 0 | 0 | 54 | s=input()
p=input()
print('Yes' if p in s+s else 'No') | Traceback (most recent call last):
File "/tmp/tmp58v8pdul/tmp0yk7aij0.py", line 1, in <module>
s=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s671768876 | p02415 | u204883389 | 1470269481 | Python | Python3 | py | Runtime Error | 0 | 0 | 25 | print(' '.swapcase(1200)) | Traceback (most recent call last):
File "/tmp/tmpmc2n79y6/tmph7ipialq.py", line 1, in <module>
print(' '.swapcase(1200))
^^^^^^^^^^^^^^^^^^
TypeError: str.swapcase() takes no arguments (1 given)
| |
s718096335 | p02415 | u204883389 | 1470269598 | Python | Python3 | py | Runtime Error | 0 | 0 | 24 | print(''.swapcase(1200)) | Traceback (most recent call last):
File "/tmp/tmpg4tnl7su/tmpfnib0bhv.py", line 1, in <module>
print(''.swapcase(1200))
^^^^^^^^^^^^^^^^^
TypeError: str.swapcase() takes no arguments (1 given)
| |
s973962537 | p02415 | u204883389 | 1470269627 | Python | Python3 | py | Runtime Error | 0 | 0 | 25 | print(''.swapcase(<1200)) | File "/tmp/tmpsy5169g1/tmpwe9bjje6.py", line 1
print(''.swapcase(<1200))
^
SyntaxError: invalid syntax
| |
s347000045 | p02415 | u204883389 | 1470269651 | Python | Python3 | py | Runtime Error | 0 | 0 | 24 | print(' 'swapcase(1200)) | File "/tmp/tmp7ak0kvko/tmp8tdebvkh.py", line 1
print(' 'swapcase(1200))
^^^^^^^^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
| |
s939779210 | p02415 | u204883389 | 1470269671 | Python | Python3 | py | Runtime Error | 0 | 0 | 25 | print(' ',swapcase(1200)) | Traceback (most recent call last):
File "/tmp/tmphm4ztwf9/tmpsvgyk8yv.py", line 1, in <module>
print(' ',swapcase(1200))
^^^^^^^^
NameError: name 'swapcase' is not defined
| |
s886810367 | p02415 | u204883389 | 1470269810 | Python | Python3 | py | Runtime Error | 0 | 0 | 57 | s = [int(i) for i in input().split()]
print(s.swapcase()) | Traceback (most recent call last):
File "/tmp/tmp4_tif99k/tmpr6q2sc09.py", line 1, in <module>
s = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s714393624 | p02415 | u204883389 | 1470269833 | Python | Python3 | py | Runtime Error | 0 | 0 | 61 | s = [int(i) for i in input().split()]
print(s.swapcase(1200)) | Traceback (most recent call last):
File "/tmp/tmpl661sgwu/tmp1fdfxptt.py", line 1, in <module>
s = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s247733527 | p02415 | u204883389 | 1470269861 | Python | Python3 | py | Runtime Error | 0 | 0 | 59 | s = [int(i) for i in input().split()]
print('s'.swapcase()) | Traceback (most recent call last):
File "/tmp/tmpb3eqcjf1/tmpjj7g6lhr.py", line 1, in <module>
s = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s200926603 | p02415 | u204883389 | 1470269919 | Python | Python3 | py | Runtime Error | 0 | 0 | 55 | s = [int(i) for i in input().split()]
print(s.swapcase) | Traceback (most recent call last):
File "/tmp/tmpv_h17ax1/tmpwai5n2px.py", line 1, in <module>
s = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s429869644 | p02415 | u204883389 | 1470270025 | Python | Python3 | py | Runtime Error | 0 | 0 | 26 | print(' '.swapcase(1200<)) | File "/tmp/tmphx_ud0md/tmp0d6323hh.py", line 1
print(' '.swapcase(1200<))
^
SyntaxError: invalid syntax
| |
s409068939 | p02415 | u204883389 | 1470270056 | Python | Python3 | py | Runtime Error | 0 | 0 | 41 | import swapcase
print(' '.swapcase(1200)) | Traceback (most recent call last):
File "/tmp/tmpptn9c2dr/tmpvi1yrvcy.py", line 1, in <module>
import swapcase
ModuleNotFoundError: No module named 'swapcase'
| |
s997950149 | p02415 | u204883389 | 1470270074 | Python | Python3 | py | Runtime Error | 0 | 0 | 37 | import swapcase
print(' '.swapcase()) | Traceback (most recent call last):
File "/tmp/tmpb_r415kg/tmpc_x5fya0.py", line 1, in <module>
import swapcase
ModuleNotFoundError: No module named 'swapcase'
| |
s438691233 | p02415 | u204883389 | 1470270121 | Python | Python3 | py | Runtime Error | 0 | 0 | 25 | print(' '.swapcase(1200)) | Traceback (most recent call last):
File "/tmp/tmp1ghdkjcx/tmpidb6b_uh.py", line 1, in <module>
print(' '.swapcase(1200))
^^^^^^^^^^^^^^^^^^
TypeError: str.swapcase() takes no arguments (1 given)
| |
s228681464 | p02415 | u204883389 | 1470270136 | Python | Python3 | py | Runtime Error | 0 | 0 | 27 | print(' '.swapcase(0<1200)) | Traceback (most recent call last):
File "/tmp/tmpselb_jj0/tmpw4doqs4f.py", line 1, in <module>
print(' '.swapcase(0<1200))
^^^^^^^^^^^^^^^^^^^^
TypeError: str.swapcase() takes no arguments (1 given)
| |
s952618245 | p02415 | u204883389 | 1470270175 | Python | Python3 | py | Runtime Error | 0 | 0 | 26 | print(' '.swapcase())<1200 | Traceback (most recent call last):
File "/tmp/tmpf7qpf2x2/tmp_ubek5c3.py", line 1, in <module>
print(' '.swapcase())<1200
TypeError: '<' not supported between instances of 'NoneType' and 'int'
| |
s262463818 | p02415 | u204883389 | 1470270188 | Python | Python3 | py | Runtime Error | 0 | 0 | 27 | print(' '.swapcase())0<1200 | File "/tmp/tmp3tumps9e/tmp66wk3ket.py", line 1
print(' '.swapcase())0<1200
^
SyntaxError: invalid syntax
| |
s530735845 | p02415 | u204883389 | 1470270214 | Python | Python3 | py | Runtime Error | 0 | 0 | 28 | print(' '.swapcase([<1200])) | File "/tmp/tmp2ajs2y9g/tmpeknxb_02.py", line 1
print(' '.swapcase([<1200]))
^
SyntaxError: invalid syntax
| |
s293144986 | p02415 | u204883389 | 1470270232 | Python | Python3 | py | Runtime Error | 0 | 0 | 28 | print(' '.swapcase((<1200))) | File "/tmp/tmpzezsm3bo/tmpw6ylwt76.py", line 1
print(' '.swapcase((<1200)))
^
SyntaxError: invalid syntax
| |
s953048142 | p02415 | u204883389 | 1470270248 | Python | Python3 | py | Runtime Error | 0 | 0 | 27 | print(''.swapcase((<1200))) | File "/tmp/tmpqkk2s50m/tmprfaln345.py", line 1
print(''.swapcase((<1200)))
^
SyntaxError: invalid syntax
| |
s000632188 | p02415 | u204883389 | 1470270327 | Python | Python3 | py | Runtime Error | 0 | 0 | 65 | str = [int(i) for i in input().split()]
print(''.swapcase(<1200)) | File "/tmp/tmpxv4j8ak3/tmpr1d03a59.py", line 2
print(''.swapcase(<1200))
^
SyntaxError: invalid syntax
| |
s591854213 | p02415 | u204883389 | 1470270348 | Python | Python3 | py | Runtime Error | 0 | 0 | 62 | s = [int(i) for i in input().split()]
print(''.swapcase(1200)) | Traceback (most recent call last):
File "/tmp/tmpfgbm5ez5/tmpp_lasro6.py", line 1, in <module>
s = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s176378713 | p02415 | u204883389 | 1470270368 | Python | Python3 | py | Runtime Error | 0 | 0 | 63 | s = [int(i) for i in input().split()]
print('s'.swapcase(1200)) | Traceback (most recent call last):
File "/tmp/tmpub84buq4/tmpv8rp23vm.py", line 1, in <module>
s = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s204707890 | p02415 | u204883389 | 1470270385 | Python | Python3 | py | Runtime Error | 0 | 0 | 61 | s = [int(i) for i in input().split()]
print(s.swapcase(1200)) | Traceback (most recent call last):
File "/tmp/tmpc48exhdl/tmp0u6u64cr.py", line 1, in <module>
s = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s395209960 | p02415 | u204883389 | 1470270431 | Python | Python3 | py | Runtime Error | 0 | 0 | 65 | s = [int(i) for i in input().split()]
s = swapcase(1200)
print(s) | Traceback (most recent call last):
File "/tmp/tmpns8_ebmr/tmprjnbjd6h.py", line 1, in <module>
s = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s912912194 | p02415 | u204883389 | 1470273186 | Python | Python3 | py | Runtime Error | 0 | 0 | 21 | "???".swapcase(<1200) | File "/tmp/tmphrawp9cf/tmp9p0lj_ed.py", line 1
"???".swapcase(<1200)
^
SyntaxError: invalid syntax
| |
s238856068 | p02415 | u204883389 | 1470273211 | Python | Python3 | py | Runtime Error | 0 | 0 | 28 | print("???".swapcase(<1200)) | File "/tmp/tmpfy9w09q6/tmp2razowtv.py", line 1
print("???".swapcase(<1200))
^
SyntaxError: invalid syntax
| |
s124552884 | p02415 | u204883389 | 1470273752 | Python | Python3 | py | Runtime Error | 0 | 0 | 41 | x = int(input((" :"))
print(" ".swapcase) | File "/tmp/tmp65199hgo/tmp9ckt46uo.py", line 1
x = int(input((" :"))
^
SyntaxError: '(' was never closed
| |
s688398389 | p02415 | u204883389 | 1470273776 | Python | Python3 | py | Runtime Error | 0 | 0 | 37 | int(input((" :"))
print(" ".swapcase) | File "/tmp/tmpxoabgomw/tmpieb9ksy_.py", line 1
int(input((" :"))
^
SyntaxError: '(' was never closed
| |
s858765708 | p02415 | u204883389 | 1470273805 | Python | Python3 | py | Runtime Error | 0 | 0 | 41 | s = int(input((" :"))
print(s.swapcase()) | File "/tmp/tmp8wvxn0d3/tmpdfuee5n8.py", line 1
s = int(input((" :"))
^
SyntaxError: '(' was never closed
| |
s773552483 | p02415 | u204883389 | 1470274317 | Python | Python3 | py | Runtime Error | 0 | 0 | 17 | print(' '.swap()) | Traceback (most recent call last):
File "/tmp/tmpbur2cofl/tmpenck2sli.py", line 1, in <module>
print(' '.swap())
^^^^^^^^
AttributeError: 'str' object has no attribute 'swap'
| |
s476836631 | p02415 | u204883389 | 1470274359 | Python | Python3 | py | Runtime Error | 0 | 0 | 101 | def main():
s = raw_input().strip()
print s.swapcase()
if __name__ == '__main__':
main() | File "/tmp/tmpb5tmqim2/tmp1ucnwzzx.py", line 3
print s.swapcase()
^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s292789767 | p02415 | u391228754 | 1475572244 | Python | Python3 | py | Runtime Error | 0 | 0 | 33 | fAIR, LATER, OCCASIONALLY CLOUDY. | File "/tmp/tmpn_9hjduj/tmpxvkgz_i1.py", line 1
fAIR, LATER, OCCASIONALLY CLOUDY.
^^^^^^
SyntaxError: invalid syntax
| |
s516227664 | p02415 | u979507074 | 1476176010 | Python | Python | py | Runtime Error | 0 | 0 | 206 | while 1:
input = raw_input()
output = ""
for i in input:
if i.islower():
output += i.upper()
elif i.isupper():
output += i.lower()
print(output) | Traceback (most recent call last):
File "/tmp/tmp9sfor04a/tmp4o47ys72.py", line 2, in <module>
input = raw_input()
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s215396557 | p02415 | u494314211 | 1481441667 | Python | Python3 | py | Runtime Error | 0 | 0 | 124 | s=input()
for i in range(len(s)):
if s[i].islower():
s[i]=s[i].upper()
elif s[i].isupper():
s[i]=s[i].lower()
print(s) | Traceback (most recent call last):
File "/tmp/tmptuazvvdz/tmpv24x9lg8.py", line 1, in <module>
s=input()
^^^^^^^
EOFError: EOF when reading a line
| |
s244755164 | p02415 | u519227872 | 1485867238 | Python | Python | py | Runtime Error | 0 | 0 | 182 | words = input()
_words = ""
for case in words:
if case != case.upper():
case = case.upper()
elif case != case.lower():
case = case.lower()
_words += case
print (_words) | Traceback (most recent call last):
File "/tmp/tmp98oyyu6_/tmpz1p3gmff.py", line 1, in <module>
words = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s322987704 | p02415 | u130834228 | 1489113630 | 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/tmp3psdabkb/tmptkuo7oer.py", line 4, in <module>
list_str1 = list(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s119189707 | p02415 | u213265973 | 1494336462 | Python | Python3 | py | Runtime Error | 0 | 0 | 210 | words = input().split(" ")
for word in words:
for w in word:
if w.isalpha:
if w.isupper():
w.lower()
else:
w.upper()
print(",".join(words))
| File "/tmp/tmpz7r0qnms/tmpmj6wrji0.py", line 7
else:
^
IndentationError: unindent does not match any outer indentation level
| |
s711533400 | p02415 | u213265973 | 1494336532 | Python | Python3 | py | Runtime Error | 0 | 0 | 220 | words = input().split(" ")
for word in words:
for w in word:
if w.isalpha:
if w.isupper():
w.lower()
elif w.islower:
w.upper()
print(",".join(words))
| File "/tmp/tmplcpac2e6/tmp4kjro6r0.py", line 7
elif w.islower:
^
IndentationError: unindent does not match any outer indentation level
| |
s647091766 | p02415 | u213265973 | 1494336576 | Python | Python3 | py | Runtime Error | 0 | 0 | 220 | words = input().split(",")
for word in words:
for w in word:
if w.isalpha:
if w.isupper():
w.lower()
elif w.islower:
w.upper()
print(",".join(words))
| File "/tmp/tmpy9k7qjrq/tmp4q2lonlv.py", line 7
elif w.islower:
^
IndentationError: unindent does not match any outer indentation level
| |
s057403134 | p02415 | u213265973 | 1494336582 | Python | Python3 | py | Runtime Error | 0 | 0 | 220 | words = input().split(",")
for word in words:
for w in word:
if w.isalpha:
if w.isupper():
w.lower()
elif w.islower:
w.upper()
print(",".join(words))
| File "/tmp/tmpbfbbyjpg/tmp0zcruqiy.py", line 7
elif w.islower:
^
IndentationError: unindent does not match any outer indentation level
| |
s961403556 | p02415 | u213265973 | 1494336731 | Python | Python3 | py | Runtime Error | 0 | 0 | 244 | words = input().split(",")
for word in words:
for w in word:
if w.isalpha == True:
if w.isupper() == True:
w.lower()
elif w.islower == True:
w.upper()
print(",".join(words))
| File "/tmp/tmppzt_5ntt/tmpzxplacej.py", line 7
elif w.islower == True:
^
IndentationError: unindent does not match any outer indentation level
| |
s939872123 | p02415 | u213265973 | 1494336789 | Python | Python3 | py | Runtime Error | 0 | 0 | 245 | words = input().split(",")
for word in words:
for w in word:
if w.isalpha == True:
if w.isupper() == True:
w.lower()
elif w.islower == True:
w.upper()
print(", ".join(words))
| File "/tmp/tmpcg7y96as/tmp0aralkua.py", line 7
elif w.islower == True:
^
IndentationError: unindent does not match any outer indentation level
| |
s853066814 | p02415 | u213265973 | 1494336793 | Python | Python3 | py | Runtime Error | 0 | 0 | 245 | words = input().split(",")
for word in words:
for w in word:
if w.isalpha == True:
if w.isupper() == True:
w.lower()
elif w.islower == True:
w.upper()
print(", ".join(words))
| File "/tmp/tmpkvhyovc6/tmpct4a9qrg.py", line 7
elif w.islower == True:
^
IndentationError: unindent does not match any outer indentation level
| |
s294199142 | p02415 | u350064373 | 1501238671 | Python | Python3 | py | Runtime Error | 0 | 0 | 17 | swapcase(input()) | Traceback (most recent call last):
File "/tmp/tmptl_njf3a/tmpwhk0c0vn.py", line 1, in <module>
swapcase(input())
^^^^^^^^
NameError: name 'swapcase' is not defined
| |
s861070477 | p02415 | u354053070 | 1501383191 | Python | Python3 | py | Runtime Error | 0 | 0 | 24 | print(swapcase(input())) | Traceback (most recent call last):
File "/tmp/tmpa1ryhunc/tmpwcwhg317.py", line 1, in <module>
print(swapcase(input()))
^^^^^^^^
NameError: name 'swapcase' is not defined
| |
s792332968 | p02415 | u105694406 | 1504152738 | Python | Python3 | py | Runtime Error | 0 | 0 | 102 | s = input()
for i in s:
if(i.isupper()):
print(i.lower(), end="")
else
print(i.upper(), end="") | File "/tmp/tmpufsey4nq/tmpegrbmut5.py", line 6
else
^
SyntaxError: expected ':'
| |
s325292904 | p02415 | u480053997 | 1507278377 | Python | Python3 | py | Runtime Error | 0 | 0 | 140 | for c in input():
if c.islower():
s += c.upper()
elif c.isupper():
s += c.lower()
else:
s += c
print (s) | Traceback (most recent call last):
File "/tmp/tmpeyxgnjaj/tmpwt6c2tip.py", line 1, in <module>
for c in input():
^^^^^^^
EOFError: EOF when reading a line
| |
s893647436 | p02415 | u480053997 | 1507278524 | Python | Python3 | py | Runtime Error | 0 | 0 | 140 | for c in input():
if c.islower():
s += c.upper()
elif c.isupper():
s += c.lower()
else:
s += c
print (s) | Traceback (most recent call last):
File "/tmp/tmpyasu6h5s/tmplx0qg0ti.py", line 1, in <module>
for c in input():
^^^^^^^
EOFError: EOF when reading a line
| |
s368114091 | p02415 | u744506422 | 1511941594 | Python | Python3 | py | Runtime Error | 0 | 0 | 293 | Import sys
my_str = input()
for i in range(len(my_str)):
if "a"<=my_str[i]<="z":
sys.stdout.write(my_str[i].upper(),end='')
elif "A"<=my_str[i]<="Z":
sys.stdout.write(my_str[i].lower(),end='')
else:
sys.stdout.write(my_str[i],end='')
sys.stdout.write("\n") | File "/tmp/tmp_iwoltsc/tmp_l_1mkgk.py", line 1
Import sys
^^^
SyntaxError: invalid syntax
| |
s445550797 | p02415 | u369093003 | 1515161700 | Python | Python3 | py | Runtime Error | 0 | 0 | 151 | s=input();ans=""
for i in range(len(s)):
if s[i].islower():
ans+=s[i].upper(),end=""
else:
ans+=s[i].lower(),end=""
print(ans)
| File "/tmp/tmp7fqxww8q/tmpmv41p7b8.py", line 4
ans+=s[i].upper(),end=""
^
SyntaxError: invalid syntax
| |
s623323382 | p02415 | u267728784 | 1516756655 | Python | Python3 | py | Runtime Error | 0 | 0 | 156 | print(input().swapcase())
s = input()
for c in s:
if c.islower():
print(c.upper(), end="")
else:
print(c.lower(), end="")
print()
| Traceback (most recent call last):
File "/tmp/tmp6mpjcg2r/tmpm2h5j6zn.py", line 1, in <module>
print(input().swapcase())
^^^^^^^
EOFError: EOF when reading a line
| |
s953324673 | p02415 | u088372268 | 1517281486 | Python | Python3 | py | Runtime Error | 0 | 0 | 41 | tr_in = input()
print(str_in.swapcase())
| Traceback (most recent call last):
File "/tmp/tmpzt4amj9l/tmpm78qbx42.py", line 1, in <module>
tr_in = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s283113615 | p02415 | u876060624 | 1525059809 | Python | Python3 | py | Runtime Error | 0 | 0 | 79 | A = input()
upper(A[0])
for i in range(len(A):
if i>0:
lower(A[i])
print(A)
| File "/tmp/tmpumungtw6/tmpiee68w22.py", line 3
for i in range(len(A):
^
SyntaxError: invalid syntax
| |
s244835664 | p02415 | u912237403 | 1371245542 | Python | Python | py | Runtime Error | 0 | 0 | 36 | print input().strip('\n').swapcase() | File "/tmp/tmpfr67rktu/tmpcpzrllux.py", line 1
print input().strip('\n').swapcase()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s405162980 | p02415 | u633068244 | 1393328242 | Python | Python | py | Runtime Error | 0 | 0 | 28 | x = input()
print x.upper() | File "/tmp/tmpubt71n45/tmpz8m0ytx8.py", line 3
print x.upper()
^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s873665189 | p02415 | u633068244 | 1393329483 | Python | Python | py | Runtime Error | 0 | 0 | 111 |
for x in raw_input():
if x.islower():
print x.upper()
elif x.isupper()
print x.lower() | File "/tmp/tmp0bq889v9/tmp7whx2ejz.py", line 4
print x.upper()
^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s588088636 | p02415 | u633068244 | 1393329663 | Python | Python | py | Runtime Error | 0 | 0 | 114 | z = ""
for x in raw_input():
if x.islower():
z += x.upper()
else:
z += x.lower(),
print z | File "/tmp/tmphx1ufwuw/tmpntz1pr9z.py", line 8
print z
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s648667320 | p02416 | u138628845 | 1531446617 | Python | Python3 | py | Runtime Error | 0 | 0 | 139 | # -*- coding: utf-8 -*-
while True:
kazu = [int(x) for x in input()]
if kazu == 0:
break
print('{}'.format(sum(kazu)))
| Traceback (most recent call last):
File "/tmp/tmpxo22_enh/tmp0hvtj0s2.py", line 3, in <module>
kazu = [int(x) for x in input()]
^^^^^^^
EOFError: EOF when reading a line
| |
s419315690 | p02416 | u401439950 | 1535120553 | Python | Python3 | py | Runtime Error | 0 | 0 | 108 | while True:
s = input()
if s == "0":
break
a = 0
for i in s:
a += int(s[i])
| Traceback (most recent call last):
File "/tmp/tmpb763nkla/tmp8qn9gzvg.py", line 2, in <module>
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s302881570 | p02416 | u401439950 | 1535120709 | Python | Python3 | py | Runtime Error | 0 | 0 | 122 | while True:
s = input()
if s == "0":
break
a = 0
for i in s:
a += int(s[i])
print(a)
| Traceback (most recent call last):
File "/tmp/tmpw564gfhl/tmpg8kvkr_3.py", line 2, in <module>
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s935354814 | p02416 | u281808376 | 1540477380 | Python | Python3 | py | Runtime Error | 0 | 0 | 159 | lst=[]
while True:
lst.append(input())
if 0 in lst:
break
for i in lst:
sum=0
for j in range(len(i)):
sum+=i[j]
print(sum)
| Traceback (most recent call last):
File "/tmp/tmp9444flat/tmpgd5x6803.py", line 3, in <module>
lst.append(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s424344493 | p02416 | u623996423 | 1541071414 | Python | Python3 | py | Runtime Error | 0 | 0 | 119 | a = True
while a:
l = map(int, list(input()))
if l[0] != 0:
print(sum(l))
else:
a = False
| Traceback (most recent call last):
File "/tmp/tmpll248z7o/tmp1qjpx8eb.py", line 3, in <module>
l = map(int, list(input()))
^^^^^^^
EOFError: EOF when reading a line
| |
s766629519 | p02416 | u623996423 | 1541071445 | Python | Python3 | py | Runtime Error | 0 | 0 | 118 | a = True
while a:
l = map(int, list(input()))
if l[0] != 0:
print(sum(l))
else:
a = False
| Traceback (most recent call last):
File "/tmp/tmpk0n8ua1p/tmp512lknei.py", line 3, in <module>
l = map(int, list(input()))
^^^^^^^
EOFError: EOF when reading a line
| |
s180722782 | p02416 | u277375424 | 1551578815 | Python | Python3 | py | Runtime Error | 0 | 0 | 107 | while True:
x = int(input())
if x == 0:
break
table = x.split()
print(sum(table))
| Traceback (most recent call last):
File "/tmp/tmpq4qafcm_/tmp_pgzla3q.py", line 2, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s110815920 | p02416 | u277375424 | 1551578837 | Python | Python3 | py | Runtime Error | 0 | 0 | 102 | while True:
x = input()
if x == 0:
break
table = x.split()
print(sum(table))
| Traceback (most recent call last):
File "/tmp/tmp8dfnlhsz/tmppw4gd8i0.py", line 2, in <module>
x = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s572660768 | p02416 | u277375424 | 1551578848 | Python | Python3 | py | Runtime Error | 0 | 0 | 107 | while True:
x = int(input())
if x == 0:
break
table = x.split()
print(sum(table))
| Traceback (most recent call last):
File "/tmp/tmpeuhrwjvy/tmp0dsl7uni.py", line 2, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s031438121 | p02416 | u277375424 | 1551580537 | Python | Python3 | py | Runtime Error | 0 | 0 | 96 | while True:
table = int(input())
if table[0] == 0:
break
print(sum(table))
| Traceback (most recent call last):
File "/tmp/tmpd5kuphep/tmpad6d2u52.py", line 2, in <module>
table = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s320069535 | p02416 | u277375424 | 1551580552 | Python | Python3 | py | Runtime Error | 0 | 0 | 91 | while True:
table = input()
if table[0] == 0:
break
print(sum(table))
| Traceback (most recent call last):
File "/tmp/tmpnml6w0l7/tmpkw5a8g0a.py", line 2, in <module>
table = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s582664641 | p02416 | u277375424 | 1551580566 | Python | Python3 | py | Runtime Error | 0 | 0 | 96 | while True:
table = str(input())
if table[0] == 0:
break
print(sum(table))
| Traceback (most recent call last):
File "/tmp/tmp_4q8f4tu/tmp6wdl0917.py", line 2, in <module>
table = str(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s061768049 | p02416 | u277375424 | 1551580634 | Python | Python3 | py | Runtime Error | 0 | 0 | 97 | while True:
x = int(input())
if x == 0:
break
print(sum(int(i) for i in x))
| Traceback (most recent call last):
File "/tmp/tmpa3h_ch1y/tmpsey81859.py", line 2, in <module>
x = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s412556906 | p02416 | u277375424 | 1551580728 | Python | Python3 | py | Runtime Error | 0 | 0 | 92 | while True:
x = input()
if x == 0:
break
print(sum(int(i) for i in x))
| Traceback (most recent call last):
File "/tmp/tmpyam6a40j/tmpoctv2488.py", line 2, in <module>
x = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s974245064 | p02416 | u277375424 | 1551580737 | Python | Python3 | py | Runtime Error | 0 | 0 | 92 | while True:
x = input()
if x == 0:
break
print(sum(int(i) for i in x))
| Traceback (most recent call last):
File "/tmp/tmpvdbb244j/tmphstjw31w.py", line 2, in <module>
x = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s447843991 | p02416 | u654661069 | 1555979619 | Python | Python3 | py | Runtime Error | 0 | 0 | 514 | #define MAXSIZE 1000
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
char init_str[MAXSIZE]={};
int main()
{
char str[MAXSIZE];
int sum;
while(1){
strcpy(str,init_str);
scanf("%s",&str);
if((int)(str[0]-'0')!=0){
sum=0;
... | File "/tmp/tmp0hvqrxgd/tmpu_9ebko7.py", line 6
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s978632095 | p02416 | u654661069 | 1555979661 | Python | Python3 | py | Runtime Error | 0 | 0 | 514 | #define MAXSIZE 1000
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
char init_str[MAXSIZE]={};
int main()
{
char str[MAXSIZE];
int sum;
while(1){
strcpy(str,init_str);
scanf("%s",&str);
if((int)(str[0]-'0')!=0){
sum=0;
... | File "/tmp/tmp1jak3blf/tmp4m1ro9nu.py", line 6
using namespace std;
^^^^^^^^^
SyntaxError: invalid syntax
| |
s292553052 | p02416 | u662822413 | 1556548149 | Python | Python3 | py | Runtime Error | 0 | 0 | 121 | while True:
table=str(input())
if table[0] == '0':
break
print(sum(int(num) for num in table(num)))
| Traceback (most recent call last):
File "/tmp/tmpgn3_ixj7/tmpeu0o1nlj.py", line 2, in <module>
table=str(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s708772906 | p02416 | u966110132 | 1559119979 | Python | Python3 | py | Runtime Error | 0 | 0 | 366 | a = int(input())
alist = []
if a/1000 >=1:
alist.append(int(a/1000))
if (a-int(a/1000)*1000) / 100 >= 1:
alist.append(int((a-int(a/1000)*1000) / 100))
if (a-int(a/100)) / 10 >= 1:
alist.append(int((a-(int(a/100)*100)) / 10))
alist.append(a-(int(a/10)*10))
a2 = 0
... | File "/tmp/tmpaoko9zdl/tmpmtb0qln2.py", line 1
a = int(input())
IndentationError: unexpected indent
| |
s259127852 | p02416 | u966110132 | 1559119991 | Python | Python3 | py | Runtime Error | 0 | 0 | 380 | while 1 == 1:
a = int(input())
alist = []
if a/1000 >=1:
alist.append(int(a/1000))
if (a-int(a/1000)*1000) / 100 >= 1:
alist.append(int((a-int(a/1000)*1000) / 100))
if (a-int(a/100)) / 10 >= 1:
alist.append(int((a-(int(a/100)*100)) / 10))
alist.append(a-(int(a/10)*10))
... | Traceback (most recent call last):
File "/tmp/tmp7375hekp/tmp4autmwyz.py", line 2, in <module>
a = int(input())
^^^^^^^
EOFError: EOF when reading a line
| |
s619647941 | p02416 | u966110132 | 1559120059 | Python | Python3 | py | Runtime Error | 0 | 0 | 380 | while 1 == 1:
a = int(input())
alist = []
if a/1000 >=1:
alist.append(int(a/1000))
if (a-int(a/1000)*1000) / 100 >= 1:
alist.append(int((a-int(a/1000)*1000) / 100))
if (a-int(a/100)) / 10 >= 1:
alist.append(int((a-(int(a/100)*100)) / 10))
alist.append(a-(int(a/10)*10))
... | Traceback (most recent call last):
File "/tmp/tmpdv2j8n0s/tmpkmu4oszg.py", line 2, in <module>
a = int(input())
^^^^^^^
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.