fork download
  1. # your code goes here
  2. dic = {0:'p'}
  3. print(dic[0])
  4. print(dic[1])
Runtime error #stdin #stdout #stderr 0.02s 27712KB
stdin
Standard input is empty
stdout
p
stderr
Traceback (most recent call last):
  File "./prog.py", line 4, in <module>
KeyError: 1