Skip to content

OGGary1996/Python-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Learning Journey 🐍

A comprehensive Python learning repository containing structured lessons, practical examples, and hands-on projects designed for mastering Python fundamentals and advanced concepts.

📚 Project Overview

This repository serves as a complete Python learning curriculum, organized into 13 progressive chapters that cover everything from basic syntax to advanced GUI development. Each chapter includes:

  • PowerPoint presentations (.pptx) for theoretical concepts
  • PDF notes for quick reference
  • Practical code examples demonstrating real-world applications
  • Progressive difficulty from beginner to intermediate level

🗂️ Repository Structure

Chapter 1: Introduction to Python (Chapter01_Introduction_to_Python)

  • Python basics and environment setup
  • First steps in Python programming
  • Understanding the Python ecosystem

Chapter 2: Variables and Simple Data Types (Chapter02_Variables_and_Data_Types)

  • Variable creation and manipulation
  • Integer, float, and string data types
  • Data type conversion
  • String indexing and operations
  • Example projects: Apple purchasing calculator, Alipay balance tracker

Chapter 3: Operators and Expressions (Chapter03_Operators_and_Expressions)

  • Arithmetic, comparison, and logical operators
  • Expression evaluation
  • Operator precedence

Chapter 4: Conditional Statements (Chapter04_Conditional_Statements)

  • if, elif, else statements
  • Boolean logic
  • Decision-making in programs

Chapter 5: Loops (Chapter05_Loops)

  • for and while loops
  • Loop control statements
  • Nested loops and iteration patterns

Chapter 6: Composite Data Types (Chapter06_Composite_Data_Types)

  • Lists, tuples, dictionaries, and sets
  • Data structure manipulation
  • Choosing the right data structure

Chapter 7: Exception Handling (Chapter07_Exception_Handling)

  • try, except, finally blocks
  • Error handling strategies
  • Custom exceptions

Chapter 8: Functions (Chapter08_Functions)

  • Function definition and calling
  • Parameters and return values
  • Variable scope and lifetime
  • Lambda functions
  • Featured project: Business Card Management System

Chapter 9: Modules (Chapter09_Modules)

  • Importing and using modules
  • Creating custom modules
  • Package management

Chapter 10: File and I/O Operations (Chapter10_File_and_IO_Operations)

  • File reading and writing
  • CSV file handling
  • Context managers (with statements)
  • Featured project: Digital diary application

Chapter 11: Object-Oriented Programming (Chapter11_Object_Oriented_Programming)

  • Classes and objects
  • Instance and class attributes
  • Methods (instance, class, static)
  • Inheritance and polymorphism
  • Encapsulation and magic methods
  • Featured project: Student Management System

Chapter 12: GUI Development (Chapter12_GUI_Development)

  • wxPython framework
  • Window and widget creation
  • Event handling
  • Featured projects:
    • Lottery system
    • Fully functional calculator

Chapter 13: Practical Case Studies (Chapter13_Practical_Case_Studies)

  • Real-world application development
  • Integration of learned concepts
  • Best practices implementation

🚀 Getting Started

Prerequisites

  • Python 3.x installed on your system
  • For GUI development (Chapter 12): pip install wxpython

How to Use This Repository

  1. Sequential Learning: Start from Chapter 1 and progress through each chapter
  2. Topic-Specific Study: Jump to specific chapters based on your learning needs
  3. Hands-on Practice: Run the code examples in each chapter's code/ directory
  4. Theory Review: Use the PowerPoint presentations and PDF notes for concept reinforcement

Running the Examples

# Navigate to any chapter's code directory
cd "Chapter02_Variables_and_Data_Types/code"

# Run any Python file
python code2-1-create_variables.py

🎯 Learning Objectives

By completing this course, you will:

  • ✅ Master Python syntax and core programming concepts
  • ✅ Understand data structures and their applications
  • ✅ Implement error handling and debugging techniques
  • ✅ Create modular and reusable code with functions and classes
  • ✅ Develop object-oriented programming skills
  • ✅ Build graphical user interfaces
  • ✅ Handle file operations and data processing
  • ✅ Apply Python to real-world problem solving

🛠️ Featured Projects

Business Card Management System

A console-based application demonstrating:

  • Data structure usage (dictionaries and lists)
  • Function organization
  • User input handling
  • CRUD operations

GUI Calculator

A fully functional calculator built with wxPython featuring:

  • Event-driven programming
  • GUI design principles
  • Mathematical expression evaluation

Student Management System

An object-oriented application showcasing:

  • Class design and inheritance
  • Encapsulation principles
  • Complex data management

📖 Study Tips

  1. Practice Regularly: Code along with each example
  2. Experiment: Modify the examples to test your understanding
  3. Build Projects: Use the concepts to create your own applications
  4. Review Notes: Use the PDF materials for quick concept reviews
  5. Progressive Learning: Don't skip chapters - each builds on the previous

🤝 Contributing

This is a personal learning repository, but suggestions and improvements are welcome! Feel free to:

  • Report issues with code examples
  • Suggest additional practice problems
  • Share your own learning experiences

📝 Notes

  • All code examples are written in Python 3
  • Comments and variable names are in Chinese for better understanding
  • Each chapter builds progressively on previous concepts
  • PowerPoint presentations provide visual learning support

📄 License

This project is created for educational purposes. Feel free to use it for your own Python learning journey!


Happy Learning! 🎉

Remember: The best way to learn programming is by doing. Run the code, break it, fix it, and make it your own!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published