fork download
  1. func=input()[5:]
  2. print(func)
  3.  
  4. tt=int(input())
  5.  
  6. def answerFunction(x):
  7. v = func.replace('x',str(x))
  8. print(eval(v))
  9.  
  10.  
  11. for test_case in range(tt):
  12. answerFunction(int(input()))
Runtime error #stdin #stdout #stderr 0.12s 23080KB
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