Skip to content

kanomoo/python-programming-exercises

Repository files navigation

Python Programming Exercises

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.

📋 Repository Structure

Core Learning Materials

  • Hundred_Problems/ - 100 progressive Python programming exercises covering fundamental concepts to intermediate algorithms
  • AllChapter/ - Chapter-by-chapter exercises and solutions (Chapters 3-10)
  • Tutoring/ - Additional tutoring materials and practice problems

Assessments & Exams

  • Midterm-66/, Midterm-67/, Midterm-68/ - Midterm exam solutions
  • Final-66/ - Final exam problems
  • T-Final/ - Final exam materials
  • Test_MidExam 12037/ - Practice tests for midterms

Projects

  • Coffee_Shop_System/ - Coffee shop POS system project
  • RegistrationSystem/ - Student registration system
  • ProgramCalculateGrade/ - Grade calculation system
  • Tcas/ - Thai university admission-related application
  • project/ - Various other coding projects

Additional Materials

  • Brother/ - Supplementary exercises and utilities
  • PyInClass/ - In-class Python examples
  • PythonCookbook/ - Python code recipes and patterns
  • old_pyinclass/ - Legacy class exercises

🎯 Topics Covered

  • 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

💻 Requirements

  • Python 3.8 or higher
  • pip (Python package manager)
  • Virtual environment (recommended)

🚀 Quick Start

  1. Clone the repository

    git clone https://github.com/yourusername/python-programming-exercises.git
    cd python-programming-exercises
  2. Create a virtual environment (recommended)

    # Windows
    python -m venv .venv
    .venv\Scripts\activate
    
    # macOS/Linux
    python -m venv .venv
    source .venv/bin/activate
  3. Install dependencies (if applicable)

    pip install -r requirements.txt
  4. Run an exercise

    python Hundred_Problems/Problem-01.py

📚 How to Use

  • 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

📝 Exercise Progression

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

✨ Features

  • ✅ 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

🤝 Contributing

Feel free to contribute improvements, fixes, or additional exercises. Please maintain code quality and add comments where helpful.

📄 License

This project is for educational purposes.


Happy coding! 🐍

About

Collection of 100+ Python programming exercises, assignments, and projects for learning

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages