Web developmentBeginner

Python Basics

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.

11 lessons
Start the course

Course content

  1. 1

    Introduction to Python

    Understand what Python is, what it's used for and why it's an excellent first language.

  2. 2

    Installing Python

    Download Python, install it on your system and set up VS Code.

  3. 3

    Your First Program

    Interactive mode, .py scripts, print() and comments: run your first code.

  4. 4

    Variables and Data Types

    str, int, float, bool, f-strings and input(): store and manipulate data.

  5. 5

    Operators

    Arithmetic, comparison and logical operators to calculate and compare.

  6. 6

    Conditions

    if, elif, else and indentation to make your program take decisions.

  7. 7

    Loops

    for, while, range, break and continue to repeat actions.

  8. 8

    Functions

    def, parameters, return and variable scope: organize and reuse your code.

  9. 9

    Lists and Tuples

    Store several values, access the elements, modify them and loop over them.

  10. 10

    Dictionaries

    Map keys to values and combine lists and dictionaries.

  11. 11

    Modules and Error Handling

    import, pip, try / except: reuse code and make your programs robust.