6 lessons · 43 min Beginner

Python Course — The Universal Language

From web to AI and automation, learn Python in 6 lessons with AI.

FR EN
Progress 0/6
1

Introduction to Python

Discover Python, the universal language: print(), comments and indentation

6 min
2

Variables and types

str, int, float, bool, f-strings and type conversions

7 min
3

Conditions and loops

if/elif/else, comparison and boolean operators, for and while loops, break and continue

9 min
4

Lists and dictionaries

Lists, slicing, list comprehensions, dictionaries and tuples

8 min
5

Functions

def, return, default parameters, *args, **kwargs and built-in functions

7 min
6

Classes and objects

class, the __init__ constructor, self, attributes and methods, instances and __str__

10 min
7

Files and modules

open(), with, import, pip install and the os, json, datetime modules

7 min
8

Error handling

try/except/finally, common exceptions (ValueError, FileNotFoundError) and raise

8 min
9

APIs and web scraping

requests, REST APIs, BeautifulSoup and scraping ethics

8 min

What you will learn

Write Python scripts to automate tasks

Manipulate data with lists, dictionaries and files

Communicate with REST APIs and fetch web data

Create your own modules and use pip

Play to practise

Free games to practise Python while having fun.

See all learning games →

Start lesson 1

Free · No signup · 6 minutes