M
Mike
How do I extract a list of lists from a user defined function and print the
results as strings for each list?
results as strings for each list?
How do I extract a list of lists from a user defined function
and print the results as strings for each list?
def get_questions():
return [["What color is the daytime sky on a clear day?","blue"],\
["What is the answer to life, the universe and
everything?","42"],\
["What is a three letter word for mouse trap?","cat"]]
print question, answer
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.