A collection of small, self-contained Python scripts I wrote while learning Python (inspired from a YouTube channel probably). Each file is a simple project you can run (or not, since these are simple projects that I just wanted to upload).
- chose_your_own_adventure.py — a small text-based adventure (choose the right direction or you lose xD).
- number_guesser.py — guess the randomly chosen number.
- rock_paper_scissors.py — play Rock/Paper/Scissors vs the computer.
- quiz_game.py — a simple multiple-question quiz.
- password_manager.py — minimal encrypted password manager.
See functionspassword_manager.load_key,password_manager.add,password_manager.view. - passwords.txt — encrypted password storage used by the password manager.
- key.key — the symmetric key used by the password manager (Fernet).
- todo_cli.py — a simple command-line To-Do List app (add tasks, list tasks, mark as done, delete, repeat until quit).
- Install Python 3.
- To run any script:
python3 <script_name>.py- Example:
python3 quiz_game.py
- The password manager uses the
cryptographypackage. Install it with:pip install cryptography
- The manager expects a valid key in key.key and stores entries in passwords.txt.
- Do not use real or sensitive passwords in this toy manager. Keep key.key private.
- Open a script to read the code and run it to see how input/output and control flow work.
- Try modifying or refactoring small parts (add functions, improve error handling, add tests).
- For the password manager, consider adding argument parsing, better file handling, or a secure keystore.
- For the To-Do List app, try adding saving to a file, editing tasks, or color output.
- These are learning exercises. Do not use the password manager for production secrets.
- Remove or regenerate key.key before storing any real credentials.