This repository contains Python lessons and exercises covering topics from beginner to advanced levels.
-
Assets/: Contains shared resources and sample files used across lessons and exercises:
alarm_sound.mp3: Audio clip for the Alarm Clock lesson.blueprint.png: Sample image for demonstrations.input.csv,input.json,input.txt: Example input data files for data handling lessons.output.csv,output.json,output.txt: Corresponding output data files for verification.
-
Sources/: Contains lesson folders for each topic (e.g., Variables, Functions, Lists, Sets & Tuples, Control Flow, OOP, etc.)
- Each folder includes:
main.py: Example code demonstrating the topicREADME.md: Explanations and notes for the topicExercises/: Optional practice exercises
- Each folder includes:
-
Install Python 3.x (if not already installed).
-
Clone the repository:
git clone https://github.com/Xjectro/python-lessons.git cd python-lessons\Sources\<topic-name>
-
Run the
main.pyscript:python main.py
-
Explore the exercises in the
Exercises/folder and work on your own solutions.
- Fork the repository.
- Create a new branch:
git checkout -b feature/new-topic - Commit your changes:
git commit -m "Add new topic" - Push the branch:
git push origin feature/new-topic - Open a pull request (PR).
This project is licensed under the MIT License. See the LICENSE file for details.