Introduction: Space Cadet Quiz: Test Your Astronomy Knowledge!
Step into the role of a space cadet in training with this interactive terminal-based Astronomy Quiz! Answer 25 challenging questions about planets, moons, stars, and galaxies, and see if you have what it takes to become a true space explorer.
Attachments
Step 1: Set Up Your Python Environment
Make sure you have Python 3.x installed.
- Download from python.org if needed.
Use a terminal or command prompt to check your Python version:
python --version
Step 2: Create the Project File
- Open a text editor (VS Code, Notepad++, or even plain Notepad).
- Create a new file and name it:
space_cadet_quiz.py
- Copy the full Python code of the quiz into this file.
Step 3: Run the Quiz
Open your terminal or command prompt.
Navigate to the folder containing your space_cadet_quiz.py file.
cd path_to_your_file
Run the program:
python space_cadet_quiz.py
Follow the on-screen instructions:
- Enter numbers 1-4 to answer each question.
- Enjoy fun space facts after every question.
- See your final score and encouragement at the end!
Step 4: Customize (Optional)
- You can add more questions by editing the questions list in the code.
- Add more fun facts to the space_facts list.
- Change text colors in the terminal by modifying the ANSI color codes:
GREEN = "\033[92m"
RED = "\033[91m"
YELLOW = "\033[93m"
CYAN = "\033[96m"
RESET = "\033[0m"






