Skip to content

Syntax & Basic Statements¶

About This Lesson¶

Learn Python's fundamental syntax and basic programming statements. This lesson covers Python's code structure, indentation rules, comments, and basic statement types.

What You'll Learn¶

  • Python code structure and indentation
  • Comments (single-line and multi-line)
  • Basic statements and expressions
  • Python's style conventions (PEP 8)
  • Use the MkDocs navigation on the left to move between lessons
  • The notebook below is fully interactive - you can run and edit code
  • Your changes are saved in your browser's local storage

Interactive Notebook¶


Having trouble with the embedded notebook? Try one of these: