Courses/Python Basics

๐Ÿ Python Basics

Variables & Types

Store values with names. Numbers, strings, booleans.

A variable is a name that points to a value. In Python you create one with =.

name = "Ada"
age = 36
is_pioneer = True

Python figures out the type automatically. Strings are text in quotes, numbers are just digits, and booleans are True or False (capitalized).

You can mix them in print() using commas or f-strings.

main.py
Output
Press Run to execute.
Expected output
Ada is 36 years old.

Sign in to track your progress across lessons.