Welcome to the Flashcard App page.
This page contains a brief description and implementation instructions for the project.
Project Description
A study aid where the user can create and review “flashcards” (question-answer pairs). For example, one side shows a term, and the other shows its definition. The program can quiz the user by displaying a word and prompting for the meaning. This example uses classes to represent cards and stores them in a list.
Project Requirements
Python 3.x (no external libs required; built-in modules like random
if used for shuffling questions).
How to Run the Project
- Write a script (e.g.
flashcards.py
) that defines aFlashcard
class and allows the user to input word/meaning pairs. - Run it:
python flashcards.py
. The program can loop to add cards and then display them or quiz the user. - Follow prompts to enter flashcards, then see the list of stored cards or take a quiz.
Key Concepts Learned
- Classes and Objects: Defining a class (e.g.
Flashcard
) with attributesword
andmeaning
. - Lists: Storing flashcard objects in a Python list.
- Loops and I/O: Using a
while
loop to allow multiple entries, and printing out flashcards. - Optional (Randomization): Shuffling or randomly selecting cards for quizzing (as shown in Example 2 of the GfG article).
Possible Extensions
- Implement multiple-choice quizzes.
- Track correct/incorrect answers and give scores.
- Save flashcards to a file or database for future sessions.
- Add a GUI (e.g. Tkinter) to flip cards interactively.