# A function being an input

I have the following code and I am trying to get an output, and I keep getting an error y is not defined. Could you please help?

```
var('y')
f = sage_eval(str(input("What is the function:" )), locals = {'y' == y})
integral(f,y,0,16)
```