# Returning a function from a function – Python # define two methods# second method that will be returned# by first methoddef B():    print("Inside the method B.")     # first method that return second methoddef A():    print("Inside the method A.")         # return second method    return B# form a object of first method# i.e; second methodreturned_function = A()# call second method by first methodreturned_function()