← All sections

Module 2 · Python data types, variables, operators, and basic I/O operations

Basics

Where it gets hands-on: your first real programs, then a thorough tour of print() — the function you'll lean on to see what your code is doing.

Begin lesson 1 →
  1. 1Your very first programStore a value, use it, and print a real result of your own.
  2. 2The print() functionIts effects, its arguments, and the value it hands back.
  3. 3Function argumentsThe data you hand a function inside its parentheses.
  4. 4InstructionsWhy Python wants exactly one instruction per line.
  5. 5Escape & newline charactersSpecial codes like \n that bend text to your will.
  6. 6Using multiple argumentsPass print several values at once, separated by commas.
  7. 7Positional argumentsHow the order of arguments decides what goes where.
  8. 8Keyword argumentsNamed options like sep and end that reshape the output.
  9. 9Section quizNine ideas, a handful of questions to lock them in.