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