fork download
  1. command = input()
  2. def buy():
  3. c_list = list()
  4. e_list = list()
  5. for x in range(1,6):
  6. c = str(x)
  7. e = x
  8. c_list.append(c)
  9. e_list.append(e)
  10. return (c_list, e_list)
  11.  
  12. c, e = buy()
  13. for x in c:
  14.  
  15. if command == x:
  16. g = x - 1
  17. f = e[int(g)]
  18. inv_items.append(items[f])
  19. print(e)
  20. print(inv_items)
Runtime error #stdin #stdout #stderr 0.02s 9944KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
EOFError: EOF when reading a line