Skip to content

A personal collection of code notes, use cases, and best practices organized by topics for quick reference.

Notifications You must be signed in to change notification settings

masumkhan081/python-code-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Releases

No releases published

Packages

No packages published

Languages