A comprehensive collection of Python programming exercises, assignments, and projects for learning and classroom use. This repository contains 100+ practice problems, midterm and final exam solutions, and various coding projects.
Hundred_Problems/- 100 progressive Python programming exercises covering fundamental concepts to intermediate algorithmsAllChapter/- Chapter-by-chapter exercises and solutions (Chapters 3-10)Tutoring/- Additional tutoring materials and practice problems
Midterm-66/,Midterm-67/,Midterm-68/- Midterm exam solutionsFinal-66/- Final exam problemsT-Final/- Final exam materialsTest_MidExam 12037/- Practice tests for midterms
Coffee_Shop_System/- Coffee shop POS system projectRegistrationSystem/- Student registration systemProgramCalculateGrade/- Grade calculation systemTcas/- Thai university admission-related applicationproject/- Various other coding projects
Brother/- Supplementary exercises and utilitiesPyInClass/- In-class Python examplesPythonCookbook/- Python code recipes and patternsold_pyinclass/- Legacy class exercises
- Variables, Data Types, and Operators
- Control Flow (if/else, loops)
- Functions and Modules
- Object-Oriented Programming (OOP)
- Data Structures (lists, dictionaries, tuples)
- File I/O and Exception Handling
- Algorithms and Problem-Solving
- Database Integration
- Web Applications
- Python 3.8 or higher
- pip (Python package manager)
- Virtual environment (recommended)
-
Clone the repository
git clone https://github.com/yourusername/python-programming-exercises.git cd python-programming-exercises -
Create a virtual environment (recommended)
# Windows python -m venv .venv .venv\Scripts\activate # macOS/Linux python -m venv .venv source .venv/bin/activate
-
Install dependencies (if applicable)
pip install -r requirements.txt
-
Run an exercise
python Hundred_Problems/Problem-01.py
- For learning: Start with the
Hundred_Problems/folder and work through exercises in order - For reference: Check the
AllChapter/folder for chapter-based organization - For practice: Review midterm and final exam folders for assessment-style problems
- For projects: Explore the project folders for complete application examples
Exercises are designed with progressive difficulty:
- Problems 1-30: Basic concepts and control flow
- Problems 31-60: Functions, data structures, and algorithms
- Problems 61-100: Advanced topics and project-based challenges
- ✅ Extensive problem set (100+ exercises)
- ✅ Real-world project examples
- ✅ Exam practice materials
- ✅ Clear code organization
- ✅ Beginner to intermediate level
- ✅ Self-contained scripts for easy testing
Feel free to contribute improvements, fixes, or additional exercises. Please maintain code quality and add comments where helpful.
This project is for educational purposes.
Happy coding! 🐍