human
I am working on the file "PythonBootCamp/Complete-Python-Bootcamp-master/Decorators.ipynb".
The first task is:
Note how due to scope, the welcome() function is not defined outside of the hello() function. Now lets learn about returning functions from within functions:
Returning Functions
Can you write Python program for it?
assistant
#Here is the Python program you requested.

def hello(name='Jose'):
    
    def greet():
        return '\t This is inside the greet() function'
    
    def welcome():
        return "\t This is inside the welcome() function"
    
    if name == 'Jose':
        return greet
    else:
        return welcome

x = hello()