[ Thanks to Brendan Scott for this
“In this tutorial we’re going to start using the power of the
text editor that I’ve been badgering you about over the last few
tutorials. We are going to go back to the earlier tutorials and
resurrect some of the code there.
“Exercise: Create a new document with your text editor
“Save the document to a file called trivia.py You need to be
careful that your text editor doesn’t add ‘.txt’ to the end of the
file’s name as some have the habit of doing.
“copy the following function into the file (originally found
here, with some comments dropped):”