Variables and Data Types

Python supports different data types such as integers, floats, strings, and booleans.

Snippet:

x = 10\ny = 3.14\ntext = "Hello Python"\nis_active = True

Example:

x = 5\nprint(type(x))