fork(2) download
  1. import re
  2. import json
  3.  
  4. x = (json.dumps({'1': 2, '3': 4}, sort_keys=True))
  5. print((x[14])+1)
  6.  
  7. """ print(int(x[14])+1) // works """
Runtime error #stdin #stdout #stderr 0.01s 7876KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 5, in <module>
TypeError: cannot concatenate 'str' and 'int' objects