An interactive quiz application powered by AI.
Users can select a topic, generate AI-powered questions, and test their knowledge in a fun and engaging way.
- AI-generated quiz questions from multiple topics
- Simple, clean UI with navigation between questions
- Ability to add your own topics
- Environment variable support for keeping your API key safe
git clone https://github.com/petkov93/TheAIQuizApp.git
cd TheAIQuizApppython -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windowspip install -r requirements.txtCreate a .env file in the root directory and add your GROQ API key:
GROQ_API_KEY=your_api_key_here
⚠️ Make sure.envis in your.gitignoreso it is not pushed to GitHub.
Run the app from the root directory:
python main.py- Select a topic from the grid of buttons
- The app fetches quiz questions from the AI
- Answer questions one by one or use the navigation buttons to jump between them
All topics are defined in the const file.
To add a new topic:
- Open
const.py(or the relevant constants file) - Add your new topic to the topics list
Example:
TOPICS = [
"Python",
"Machine Learning",
"Cybersecurity",
"New Topic Here" # 👈 Add your custom topic
]Here’s what the app looks like:
This project is licensed under the MIT License.
Pull requests are welcome!
If you’d like to suggest improvements or new features, feel free to open an issue.




