larzquiz
Quizzes + spaced-repetition flashcards.
Two learning tools: self-grading quizzes (multiple-choice, true/false, short-answer) and flashcards with Leitner-box spaced repetition that reviews what you keep getting wrong more often. Deterministic and dependency-free - for courses, study apps and classrooms.
larzscript pkg install quiz
What you get
- Self-grading quizzes
- MC by text or number
- Leitner spaced-repetition decks
- Injectable I/O (testable)
Try it
import "quiz" as quiz
let q = quiz.mc("2 + 2?", ["3", "4", "5"], "4")
print(quiz.grade(q, "4"))
print(quiz.grade(q, 2))
let deck = quiz.leitner_new()
quiz.leitner_add(deck, "capital of France", "Paris")
let card = quiz.leitner_next(deck)
print(quiz.leitner_answer(deck, card, "Paris"))
print(quiz.leitner_stats(deck))Output
true
true
true
{1: 0, 2: 1, 3: 0, 4: 0, 5: 0}Why it's in the Larz Stack
larzquiz is a real Larzscript package (larzscript pkg install quiz) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.