A curated collection of Python scripts and examples exploring intermediate to advanced concepts, including object-oriented programming (OOP), data structures, decorators, threading, and more.
This repository is organized into directories, each focusing on a specific Python concept:
classes/
- Examples demonstrating OOP principles: classes, inheritance, polymorphism, encapsulation, etc.
data-structures/
- Implementations of various data structures like lists, stacks, queues, trees, graphs, and algorithms such as BFS and DFS.
decorators/
- Illustrations of function decorators
exception-handling/
- Examples of Python's error handling mechanisms using
try
,except
,finally
, and custom exceptions.
- Examples of Python's error handling mechanisms using
file-handling/
- Scripts for reading from and writing to files, handling CSV and JSON formats, and managing file contexts.
threads/
- Demonstrations of multithreading.
-
Clone the repository:
git clone https://github.com/sanjay14073/learn_py.git cd learn_py
-
Explore the directories:
Navigate through the folders to find Python scripts (
.py
files) illustrating various concepts. Each script is self-contained with comments explaining the logic.
- Object-Oriented Programming (OOP)
- Data Structures and Algorithms
- Decorators and Higher-Order Functions
- Exception Handling
- File I/O Operations
- Multithreading
- Standard Libraries:
collections
,functools
,itertools
(README.md - rochacbruno/python-project-template - GitHub)
- Practical examples with clear, concise code.
- Well-commented scripts for better understanding.
- Modular organization for easy navigation.
- Real-world scenarios to demonstrate concepts.
Contributions are welcome! If you have examples or improvements to share, feel free to fork the repository and submit a pull request.