<code>def namaste(fx):
def tx() :
print("namaste may god bless you")
fx()
print("thanks for using this function")
return tx
@namaste
def holla():
print("hola amigo you bueno")
holla()
</code>
<code>def namaste(fx):
def tx() :
print("namaste may god bless you")
fx()
print("thanks for using this function")
return tx
@namaste
def holla():
print("hola amigo you bueno")
holla()
</code>
def namaste(fx):
def tx() :
print("namaste may god bless you")
fx()
print("thanks for using this function")
return tx
@namaste
def holla():
print("hola amigo you bueno")
holla()
in this code why did we use tx function inside namaste function ?
I just want to know why another function has to be created inside function namaste. and if i don’t make the function it gives error
New contributor
Rohan Kapoor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.