Python Tutorial #5: Functions — def, *args, **kwargs, and Lambdas

In the previous tutorial, we learned about control flow: if, for, while, and match/case. Now let’s learn about functions — reusable blocks of code. Functions are the foundation of clean code. They let you write a piece of logic once and use it many times. By the end of this tutorial, you will know how to define functions, use different parameter types, write lambda functions, and understand closures. Defining a Function Use the def keyword to create a function: ...

April 25, 2026 · 9 min

Python Tutorial #4: Control Flow — if, for, while, match

In the previous tutorial, we learned about variables, types, and f-strings. Now let’s learn how to make decisions and repeat actions in Python. Control flow statements let your program choose what to do based on conditions and repeat actions in loops. By the end of this tutorial, you will know how to use if, for, while, match/case, and several useful loop helpers. if, elif, else The if statement runs code only when a condition is true: ...

April 25, 2026 · 9 min

Python Tutorial #3: Variables, Types, and f-Strings

In the previous tutorial, we installed Python and wrote our first program. Now let’s learn about the building blocks of every Python program: variables and types. By the end of this tutorial, you will know how to create variables, work with different data types, format strings with f-strings, and convert between types. Variables in Python A variable stores a value. In Python, you create a variable by assigning a value with =: ...

April 24, 2026 · 9 min

Python Tutorial #2: Installing Python and Your First Program

In the previous tutorial, we learned what Python is and why it is worth learning. Now it is time to install it and write your first program. By the end of this tutorial, you will have Python running on your computer. You will know how to use the Python REPL, write a script, and run it from the terminal. Installing Python Python works on macOS, Linux, and Windows. Let me show you how to install it on each system. ...

April 24, 2026 · 9 min

Python Tutorial #1: Why Python? A Simple Guide for Developers

Python is the most popular programming language in the world right now. It has been the number one language on the TIOBE Index since 2021 and holds a record-breaking 26% rating in 2025-2026. But why? What makes Python so popular? And should you learn it? In this tutorial, we will answer these questions. By the end, you will understand what Python is, where it is used, and why it is worth learning in 2026. ...

April 24, 2026 · 9 min