Ram

Lesson 2 of 6

Variables & Data Types

Store text, numbers and boolean values in named variables.

A variable gives a value a reusable name. Python determines the basic data type from the value you assign.

Common beginner types include strings, integers, floating-point numbers and booleans.

Example

name = "Asha"
age = 24
learning = True
print(name, age, learning)

Practice challenge

Create variables for your city, age and whether you enjoy coding.

Previous
Next