You have been building lists with for loops. Python lists do it better — here is the complete guide with 5 practice exercises and solutions.
Master Python strings from scratch. Learn string methods, indexing, slicing, f-strings, and Python 3.13 features with real code examples for beginners and intermediate developers.
Master Python print formatting in 2026. Learn f-strings, format specifiers, sep & end parameters, number formatting, and debugging tricks with clear code examples.
Python null vs None: Complete Guide to Handling Null Values
August 10, 2025
Quick Answer: Python doesn’t have “null” – it uses None instead. If you’re coming from languages like Java, C#, or JavaScript, this guide will show you exactly how Python’s None works and why it’s different from traditional null values. The Truth About “null” in Python…
In Parts 1-3, you mastered Python’s type() function, learned type hints and annotations, and discovered when to use duck typing versus static typing. Now it’s time to level up with advanced type patterns that separate junior developers from senior ones. Previous parts in this series…
In Part 1, we explored Python’s type() function and learned when to use isinstance() instead. Part 2 showed you how to leverage type hints and annotations to write safer, more maintainable code. Now comes the crucial question every Python developer faces: When should you embrace…
In Part 1, we explored Python’s type() function and why isinstance() is usually the better choice for runtime type checking. But here’s something that might surprise you: the most effective way to handle types in Python isn’t checking them at runtime at all—it’s using type…
You’ve probably used Python’s type() function to debug mysterious errors or check what kind of data you’re working with. But here’s the thing: most Python developers use type() incorrectly, leading to brittle code that breaks in unexpected ways. I’ve seen production systems crash because developers…
Work smart with ZIP Archive in Python [Latest]
April 16, 2021
In this tutorial, we will go through ZIP archive, in brief, and cover how to work efficiently with ZipFile in python. We will be using the inbuilt python library Zipfile for this and implement some simple python scripts. What is a ZIP archive and how…
Python Exception Handling
April 6, 2019
If you are a coding veteran or write production code, you would have certainly come in the contact of those pesky errors. Being able to handle these errors makes you a good programmer, therefore it is very necessary for you to properly debug and handle…

