human
I am working on the file "Other functional features.ipynb".
The first task is:
Takto by sa to dalo spravit ak by sme pouzili partial application pomocou vnorenej funkcie.
Can you write Python program for it?
assistant
#Here is the Python program you requested.

def get_query_agent(userid, password)
    def do_query(query) :
        # do query
        # return results
    return do_query

def bar(querying_func):
    return func(querying_func)

def foo(querying_func) :
    return bar(querying_func)

def main(userid, password) :
    query_agent = get_query_agent(userid, password)
    # .. much further down the line
    foo(query_agent)