AKAman Kumar Dasinmy-py-learn-journey.hashnode.dev·6d ago · 7 min readThe Logic of Python, Explained Like You've Never Coded BeforeWhen you first start coding, your programs are like a train on a single, straight track. You give the computer a list of instructions, and it mindlessly executes them from top to bottom. It calculates00
AKAman Kumar Dasinmy-py-learn-journey.hashnode.dev·6d ago · 6 min readThe Python Object Model, Explained Like You've Never Coded BeforeWhen you first start coding, you treat Python like a calculator. You type x = 5, then y = x + 2, and you get 7. It feels like you are just pushing raw numbers around. But eventually, things start acti00
AKAman Kumar Dasinmy-py-learn-journey.hashnode.dev·6d ago · 5 min readCopying Objects, Explained Like You've Never Coded BeforeEvery time a beginner tries to make a "backup" of a list in Python, a predictable disaster happens. They modify the backup, and to their horror, the original list changes too. They feel like the compu00
AKAman Kumar Dasinmy-py-learn-journey.hashnode.dev·6d ago · 6 min readTruthiness and None, Explained Like You've Never Coded BeforeEvery condition in Python eventually boils down to a simple question: "Is this true, or is this false?" But in the real world of code, you aren't always dealing with strict True or False boolean value00
AKAman Kumar Dasinmy-py-learn-journey.hashnode.dev·6d ago · 7 min readMutability & Identity in PythonBefore learning advanced Python, you must understand one question: When you change a value, are you changing the object itself, or creating a new object? Most beginner bugs around lists, functions, d00