https://github.com/masumkhan081/python-code-notes
A personal collection of code notes, use cases, and best practices organized by topics for quick reference.
https://github.com/masumkhan081/python-code-notes
arrays-and-strings concurrency data-structures data-types deque dictionaries-in-python language-learning lists-python matpotlib multithreading numpy-arrays pandas python read-write sets-python tuples-in-python
Last synced: 18 days ago
JSON representation
A personal collection of code notes, use cases, and best practices organized by topics for quick reference.
- Host: GitHub
- URL: https://github.com/masumkhan081/python-code-notes
- Owner: masumkhan081
- Created: 2024-04-04T00:00:36.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-03-16T20:11:31.000Z (about 1 year ago)
- Last Synced: 2025-05-30T10:12:53.336Z (12 months ago)
- Topics: arrays-and-strings, concurrency, data-structures, data-types, deque, dictionaries-in-python, language-learning, lists-python, matpotlib, multithreading, numpy-arrays, pandas, python, read-write, sets-python, tuples-in-python
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Code Notes
A repository for Python code snippets, notes, and best practices. This collection covers essential Python concepts, syntax, and common libraries to help me for quick reference, learning, and keeping notes.
---
## Topics
1. **Core Python Syntax**
- Variables, Data Types, and Type Conversion
- Operators
- Conditionals and Loops
2. **Functions and Lambdas**
- Defining Functions
- Lambda Expressions
3. **Data Structures**
- Lists, Tuples, Sets, Dictionaries
- List and Dictionary Comprehensions
4. **Modules and Packages**
- Importing Modules
- Custom Modules
5. **Object-Oriented Programming (OOP)**
- Classes, Inheritance, Encapsulation, Polymorphism
6. **File Handling**
- Reading, Writing, JSON and CSV
7. **Error Handling**
- Exception Handling and Custom Exceptions
8. **Advanced Python Concepts**
- Generators, Context Managers, Regular Expressions
---
## Setup Instructions
Clone the repository:
git clone https://github.com/masumkhan081/python-code-notes.git
β
Phase 1: Python Essentials (7β10 days)
β± Spend ~1 hour/day.
π― Must Learn:
β
Data types: str, list, dict, tuple, set
β
Control flow: if, for, while, comprehensions
β
Functions: def, *args, **kwargs, lambdas
β
Modules: import, from, math, random, os
β
File I/O: open(), with, read/write basics
β
Exception handling: try/except, finally
π Skip: OOP internals, decorators/metaclasses unless used in Django/ML context.
β
Phase 2: Python for Django (5β7 days)
Goal: Understand the code you'll write daily in Django.
π― Must Learn:
β
Classes & Objects (only what Django uses)
__init__, self, inheritance
Models and attributes
β
Virtual Environments: venv, pip, requirements.txt
β
Django Project Basics:
startproject, startapp, views, templates
URLs and routing
Django ORM: basic Model, QuerySet, filter(), get()
π Skip: Advanced metaclasses, middleware, admin customization (for now)
β
Phase 3: Python for Machine Learning (10β14 days, flexible)
Donβt need to master Python, just enough to write ML code clearly.
π― Must Learn:
β
Numpy & Pandas: array ops, indexing, filtering, aggregation
β
Jupyter Notebooks: for experiment & quick dev
β
Functions, loops, and list comprehensions for data prep
β
Matplotlib / Seaborn (just enough for data viz)
π Skip: Async programming, multithreading, Django templating (for now)