Variables and Data Types in Python

1. Variables

Example:

# Variable assignment
age = 25
name = "John"
height = 5.9

# Multiple assignment
x, y, z = 10, 20, 30

2. Data Types

Python has several built-in data types:

a. Numeric Types

b. Text Type

c. Boolean Type

d. Sequence Types

e. Set Types