# all is object

def hi(name = 'yasoob'):
    return "hi " + name
print(hi())

greet = hi

print(greet())

del hi

# print(hi())

print(greet())


def hi2(name = 'yasoob'):
    print("now you are inside the hi2() function")
    
    def greet2():
        return "now you are in the greet2() function"
    
    def welcome2():
        return "now you are in the welcome2() function"
        
    print(greet2())
    print(welcome2())
    print("now you are back in the hi2() function")
hi2()