Make a quiz maker in Python, or get AI quizzes from your notes
Writing a small quiz program teaches lists, loops and conditionals. When you would rather study than code the question bank, DeckOwl builds multiple-choice, true/false and short-answer questions with explanations from your PDFs, slides or notes.
Building the quiz logic step by step
If you want to learn how to make a quiz maker in python, start with three pieces: a list of questions, a loop that asks each one with input(), and a score counter that goes up for each correct answer. Each question can be stored as a dictionary holding the prompt, the options and the correct answer, so the loop reads one record at a time.
- Store each question as a dictionary with its options and answer together.
- Use input() and convert the result with int() or float() before doing math.
- Compare answers after calling .strip() and .lower() so small typos in case do not count as wrong.
- Load questions from a file with open() in a with block, using json.load() or csv.DictReader.
Upload your own material
Add PDFs, DOCX files, PPTX slides, plain text notes or photos of pages. Text in images is read with text recognition.
Three question types
Get multiple-choice, true/false and short-answer questions, each with an explanation of why the answer is correct.
Export when you need it
Export quizzes to PDF or DOCX on Plus. QTI 2.1 and Moodle XML export are available on Pro.
How it works
Upload notes or slides
Drop in the file you are studying from. There is no need to type out questions by hand.
Pick the question types
Choose multiple-choice, true/false or short answer, and read the explanations as you review.
Study or export
Practice in the browser on the free plan, or export to PDF, DOCX, Anki or CSV on Plus.
Once the basic loop works, add the parts that make it feel like a real quiz. Normalize answers with .lower() or .casefold() before comparing them, shuffle the order with random.shuffle(), and load questions from a JSON or CSV file so you can edit them without touching the code. Print the final score at the end.
The coding exercise is useful for learning Python, but writing a new question bank for every topic takes longer than studying it. DeckOwl works from your own material instead, so you can compare a hand-built Python quiz with questions generated from your lecture notes and choose the approach that fits your course.
Explore related topics
Python math quiz from your notes
Turn Python math notes into multiple-choice and true/false questions with explanations.
Free quiz maker from your notes
Learn how to make a free quiz from your own PDFs, slides or notes, with explanations.
How to Make a Geography Quiz
Turn your geography notes or slides into a quiz with explanations for every answer, using AI.
How to make a good pub quiz
Round structure, question mix and fair answers for a pub quiz that keeps tables engaged.
How to Make a Map Quiz from Your Notes
Build a map quiz from your own PDF, slides or notes, with explanations for every answer.
Map Quiz on Sporcle: Build From Notes
Turn geography notes into questions with answers, then place them on your own map quiz.
Matching Vocabulary Quiz: How-To
Build a matching vocabulary quiz from your own notes, PDFs or slides, step by step.
Math Quiz in MIT App Inventor
Build a math quiz in App Inventor: blocks, sample questions and answer checks.
Frequently asked questions
What Python concepts does a basic quiz program need?
You need a list or dictionary of questions, a loop to ask each one, input() to read answers, and an if statement to compare them. A counter variable tracks the score.
How do I check answers without worrying about capital letters?
Convert both the stored answer and the user's input with .lower() or .casefold() before comparing them. Calling .strip() first also removes extra spaces.
Is there a free DeckOwl plan?
Yes. The free plan includes 3 generations per month and studying in the browser. Exports are part of paid plans.
Can DeckOwl export quizzes to Moodle XML?
Moodle XML and QTI 2.1 export are included on the Pro plan at $14.99 per month. Plus at $39 per year or $7.99 per month covers PDF, DOCX, Anki and CSV export.
Keep exploring the topic
Review the main ideas visually or practice recalling them.
Nursing Biology Flashcards
Turn your nursing biology notes or slides into flashcards with spaced repetition.
Flashcard Maker for Mac
Turn your PDFs, slides and notes into spaced repetition flashcards in your Mac browser.
Cancel your AI concept map plan
How to think about canceling an AI concept map website and what the free plan still includes.
Quadrilaterals Class 9 Mind Map
Class 9 quadrilaterals mind map covering parallelograms, rhombus, square and trapezium.