02 - Python Basics#

Lesson Overview#

This beginner-friendly lesson will cover the fundamentals of coding in Python. The following topics are broken down into chapters with examples and exercises:

  • Commenting & Printing

  • Data Types

  • Variables

  • Operators

  • Data Structures

  • For Loops

  • If Statements

  • Functions

By the end of this lesson, you should be well-versed to start typing basic code in Python!

Python Cheat Sheet#

Download this Python Cheat Sheet for quick reference of concepts covered in this lesson.

Download Python Cheat Sheet

Resources for Further Learning#

  • Code in Place is a self-paced beginner course that covers many of the core topics introduced in this lesson.

  • Real Python offers beginner-friendly practice problems and tutorials to strengthen your Python skills.

  • Python Docs are the official source for Python syntax, rules, and concepts—perfect for deeper reference and learning.