Hey, I’m Nitin 👋

Python backend • Flask/FastAPI • SQL. Short, well-explained code guides.

Day 2: Variables Don't Store Values (Python Memory Model)

If you think x = 10 means “x stores 10”… you are already misunderstanding Python. Today, we fix that. Today’s Goal By the end of today, you will: Understand how Python stores data in memory Learn references vs values Understand mutability Avoid hidden bugs The Illusion You write: x = 10 y = x You think: “x and y both store 10” Wrong. What Actually Happens Memory: [10] ← object x ─────┐ ├──→ [10] y ─────┘ ...

April 23, 2026 · 1 min · Nitin S Kulkarni

Day 1: Python Is Not Running Your Code (Execution Model Deep Dive)

You write Python. But Python is not executing your code the way you think. Today, you stop treating Python as magic. Today’s Goal By the end of today, you will: Understand how Python executes your code Learn what happens between .py → execution Build a mental model of the Python interpreter The Illusion You write: x = 10 y = x + 5 print(y) You assume: “Python reads this line by line and runs it” That assumption is wrong. ...

April 22, 2026 · 2 min · Nitin S Kulkarni
Mastering Dicts in Python — The Most Powerful Python Container You are Underusing

Mastering Dicts: The Most Powerful Python Container You are Underusing

🧭 Introduction If you’ve ever worked with APIs, JSON, or configuration files in Python, you’ve already used dictionaries — probably more often than you realize. But most developers barely scratch the surface of what dict can do. In this post, we’ll explore why dictionaries are Python’s most powerful and versatile container, and how mastering them can make your code cleaner, faster, and more expressive. 🧠 What Is a Dictionary? A dictionary is a key–value mapping — think of it as a real-world lookup table. ...

October 25, 2025 · 3 min · Nitin S Kulkarni
From Idea to PyPI — Python SDK Publishing Tutorial

From Idea to PyPI — How I Built and Published My Own Python SDK

Have you ever installed a library with pip install and wondered — how do developers publish their own? In this post, I’ll show you how I built, tested, and published my own Python SDK — a simple, synchronous client for the OpenWeatherMap API — all the way to PyPI. You’ll learn: How to structure a reusable SDK How to use pyproject.toml for modern packaging How to test, lint, and type-check your library How to publish to both TestPyPI and PyPI ⚙️ Step 1: Plan the SDK Question Example Package name sync_openweatherapi_python_sdk Import name openweather Core purpose Simple Python wrapper for OpenWeatherMap API Dependencies requests, pydantic, python-dotenv Testing tools pytest, responses, mypy, ruff The goal is developer ergonomics: clear interfaces, typed models, and testability. ...

October 24, 2025 · 3 min · Nitin S Kulkarni
Lists vs Tuples vs Sets in Python — Key Differences Explained

Python Lists vs Tuples vs Sets — When to Use Each

In Python, we often reach for lists, tuples, and sets to store data. They look similar, but the choice affects memory, lookup speed, immutability, and thread safety. This post focuses on how working developers should decide between them. Lists — ordered and mutable A list maintains order and can be updated at any time. emails = ["john@x.com", "jane@x.com"] emails.append("max@x.com") for email in emails: print(email) Use lists when: You need to preserve order. You plan to modify data (append, remove, sort). You do not need the object to be a dictionary key or a set element. Engineering note: lists are fast for appends but not thread-safe for concurrent writes. ...

October 9, 2025 · 2 min · Nitin S Kulkarni