Reading · 9 min

Variables, types and functions

You are previewing a free lesson. Enrol to save progress and take quizzes.

Python uses indentation to group code. Common types are int, float, str, list and dict.

Functions

Define a function with def. Functions take parameters and return values, which keeps analysis steps reusable.