Skip to content

01 · Basics

First contact with Python. Foundation for everything else.

What you'll learn

  • Running Python — interpreter, scripts, notebooks.
  • Variables (named boxes for values) and types — int, float, str, bool.
  • Expressions and operator precedence (the order Python evaluates 2 + 3 * 4).
  • Input and output — input(), print().
  • Control flow (choosing which code runs): if / elif / else, while, for.
  • Functions — reusable blocks of instructions with inputs and outputs.

Sub-modules

  • 1st Module — hello world, arithmetic, first scripts (Code001Code005).
  • 2nd Module — variables, strings, user input (Code006Code009, Example001, Exercise001).
  • 3rd Module — expressions, operator precedence, comparison (Code010Code011, Exercise002, precedence diagrams).
  • 4th Module — conditionals (Code012Code015).
  • 5th Module — loops.

Plain-language analogy

Think of a Python program like a recipe: each line is a step, variables are the labeled bowls on the counter, and control flow is the "if the dough is sticky, add flour" decision you make mid-recipe.

Source code

courses/python-course/01 - Basics/