# limit within a python function

Hi there, total beginner in Sage, and this drives me mad:

```
def mylimit(f,x,a):
return f.limit(x=a)
var('y')
mylimit(1/y,y,2).show()
```

which always returns: 1/y...

How shall I specify that x should be a var?

Thanks in advance.

Welcome to Ask Sage! Thank you for your question.