Function Returning Another Function In Python Definition Syntax