fork download
  1. z = add(1, 2)
  2. print(z)
  3.  
  4. def add(x, y):
  5. return x + y
Runtime error #stdin #stdout #stderr 0.11s 23552KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
NameError: name 'add' is not defined