tech-tea.hashnode.devUnderstanding Copy in Python (With Clear Examples)One of the most confusing concepts for beginners in Python is how copying works — especially with lists. Let’s understand it step by step. 📌 Example 1: Simple Assignment (No Copy Happens) myListOne = [1, 2, 3] myListTwo = myListOne Here, no new list...Feb 8·2 min read
tech-tea.hashnode.devA Beginner's Guide to Mutable vs Immutable Data Types in PythonIf we go by the literal meaning: Immutable means something that cannot be changed. Mutable means something that can be changed. In Python, everything is an object, and variables do not store values directly. Instead, variables store references (addre...Jan 20·2 min read
tech-tea.hashnode.devLearn to Execute Python in the Shell: A Beginner's GuideHi everybody! In this article, we’ll discuss how to use Python in the shell—or to be more precise, how to use Python in the REPL. These two terms are often used interchangeably, but they are not exactly the same. I’ve already explained the clear diff...Jan 19·2 min read
tech-tea.hashnode.devComparing Shell and REPL: Key Differences ExplainedHi everybody 👋 In this article, I try to explain the difference between a Shell and a REPL. Initially, I was planning to write an article on “Python in Shell”, but while learning, I found myself asking ChatGPT about the difference between a Shell an...Jan 18·2 min read
tech-tea.hashnode.devInternal Working of Python 🐍Python looks like an interpreted language on the surface, but internally it follows a compile + interpret model. Let’s understand this step by step. Step 1: Writing a Python Program You create a Python file, for example hello.py, using a code editor ...Jan 18·3 min read