~35 words
Beginner
Prerequisites: None
Updated June 2026

Variables and Data Types

In a Nutshell

Learn how to store and manipulate data in Python.

Variables

Variables are containers for storing data values. Python has no command for declaring a variable. A variable is created the moment you first assign a value to it.

x = 5\ny = "John"\nprint(x)\nprint(y)