Category: Programming
List methods in Python: append, remove, and list comprehensions
A list you can't modify is just a tuple with extra steps. Learn to add, remove, and transform elements with the most important list methods — and write your first list comprehensions.
Lists in Python: your first data structure
A single variable can only hold one value. Lists hold as many as you need — and let you access, slice, and iterate over them with almost no ceremony.
for loops and range() in Python: iterate without the busywork
while gives you control. for gives you clarity. Learn to iterate over sequences, generate number ranges with range(), and write nested loops — without managing a counter by hand.
while loops in Python: repetition with a condition
You already know how to make decisions with if. Now learn how to repeat them. while loops execute code over and over as long as a condition holds — and yes, infinite loops are very real.
Conditional statements in Python: if, elif, and else
Your code has always executed the same instructions in the same order. With if, elif, and else, it can finally make decisions. Learn to write programs that react to data.
Common beginner mistakes in Python (and how to fix them)
Python's error messages are your best ally — if you know how to read them. Learn to decode tracebacks, understand the most common beginner mistakes, and build a debugging mindset from day one.
Introducing the AI for Developers Course
Using AI for emails but not for code? This course teaches you to use AI as a professional development tool: from understanding LLMs to orchestrating multi-agent workflows. Completely free!
Strings and string methods in Python
Strings are the data you'll work with most in Python. In this tutorial you'll learn how to create them, manipulate them, and get the most out of Python's string methods.
Introducing the Mastering Docker from Scratch Course
Tired of 'it works on my machine'? This course teaches you Docker from zero to professional level: containers, images, Compose, networking, and production deployments. Completely free!
Operators and expressions in Python
With variables under control, it's time to do something useful with them. In this tutorial you'll learn how to operate on data in Python: math, comparisons, logic... and how not to mix up = with ==.