- Reads multiple csv files with question data
- Displays each question with four answers
- Checks and displays correct choice after answer entered
- Allows user to choose number of questions to display
- Displays score (%), number of correct/incorrect answers, and completion time at the end
- Can write all output to a text file for review once complete
- Create or use folder (
csvdata/
by default) for question data
(If using new directory, updatequestions_dir
list variable) - Add
csv
files with question data (pipe|
separated) in the form:
question | option A | option B | option C | option D | answer (a-d)
- (Optional) To use questions from certain files only, update the
keywords
list variable with keywords from the files you want to use - Run
pychooseu.py
- Choose how many questions you want to display (hit
enter
to display all) - Enter
a-d
to answer orq
to quit - (Optional) View results output file in
output
directory
- Do a docker build with the Dockerfile
docker build -t pychooseu .
- Run the container interactively
docker run -i --name pychooseu pychooseu
- (Optional) To save the results, view the container logs and pipe output to a file
docker logs pychooseu > results.txt