This course guides you step by step through learning Python, from installation to modules and error handling, including variables, conditions, loops, functions, lists and dictionaries. Each lesson combines explanation, concrete example and small hands-on exercise.
Introduction to Python
Understand what Python is, what it's used for and why it's an excellent first language.
Installing Python
Download Python, install it on your system and set up VS Code.
Your First Program
Interactive mode, .py scripts, print() and comments: run your first code.
Variables and Data Types
str, int, float, bool, f-strings and input(): store and manipulate data.
Operators
Arithmetic, comparison and logical operators to calculate and compare.
Conditions
if, elif, else and indentation to make your program take decisions.
Loops
for, while, range, break and continue to repeat actions.
Functions
def, parameters, return and variable scope: organize and reuse your code.
Lists and Tuples
Store several values, access the elements, modify them and loop over them.
Dictionaries
Map keys to values and combine lists and dictionaries.
Modules and Error Handling
import, pip, try / except: reuse code and make your programs robust.