← Python for Beginners

Lesson 1 of 3 · 8 min

Variables & data types

Variables store values: name = "Ada" or age = 17. Python figures out the type for you.

The core types are text (str), whole numbers (int), decimals (float) and true/false (bool).

Practice

Create variables for your name, age and height, then print them in one sentence.

Quiz

+50 pts
1. Which type is 3.5?
2. A variable is…

Optional resources

Your lesson toolkit

No purchase or partner signup is required to complete this course or earn quiz points.

These are official product links, not active affiliate links. Learnly does not currently earn a commission from them.

Replit

Try Python exercises in a browser coding workspace.

Free and paid plans; usage limits and feature availability vary.

Explore tool