I am trying to make a function that returns itself with parameters.
Def a (x,y):
*code*
Return a(x,y)
this returns an error when I try to run it.
>>> a(1,2)
RecursionError: maximum recursion depth exceeded
What I want is
>>> a(1,2)
a(1,2)
It there a way to return the function with parameters?
I know it can be done but I don’t know how to do it
>>> datetime.time(0,0)
Datetime.time(0,0)
Edit: Preferably I would like not to have to import any modules