https://github.com/martinsecc/comptia-question-gen
Simple Python quiz generator for CompTIA Security+ practice (SY0-701)
https://github.com/martinsecc/comptia-question-gen
comptia comptia-security cybersecurity python quiz terminal training
Last synced: 2 months ago
JSON representation
Simple Python quiz generator for CompTIA Security+ practice (SY0-701)
- Host: GitHub
- URL: https://github.com/martinsecc/comptia-question-gen
- Owner: Martinsecc
- License: mit
- Created: 2025-04-24T00:27:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-24T01:12:22.000Z (about 1 year ago)
- Last Synced: 2025-04-24T01:38:02.437Z (about 1 year ago)
- Topics: comptia, comptia-security, cybersecurity, python, quiz, terminal, training
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://opensource.org/licenses/MIT)
# CompTIA Security+ Question Generator
A simple Python script that generates multiple-choice questions at CompTIA Security+ level (SY0-701).
I felt like rapid fire questions were a good way to prepare.
They are AI-generated, so be aware it's not official and may contain errors.
## ** Features
- Generates exam-style Security+ questions
- Lets you choose an answer and tells you if it was correct
- Keeps the question and options visible after answering
- One question per run, clean and simple
## ** How to use
1. Clone this repository:
git clone https://github.com/Martinsecc/comptia-question-gen.git
cd comptia-question-gen
2. Create a `.env` file in the root folder:
OPENAI_API_KEY=sk-...
3. Set up a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
4. Run the quiz:
python main.py
---
Made for personal study use. Contributions welcome.
If you fail the test because of this generator, you're not eligible for compensation.