Relative Content

Tag Archive for pythonpython-decorators

python decorators nesting two functions

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 […]