2 of 1 ·Numbers & strings

Lesson 2 · Python Foundation
Two everyday data types.
Variables & Data
Give a value a name, such as score = 3. Change the score and print it. Notice that 3 is a number but '3' is text.
Click to zoomEvery value in Python has a type. The three you'll use constantly:
13, 0, -53.14, 88.5"Ananya", "13"Look at that last one carefully. 13 and "13" are different things. One is a number you can do maths with; the other is text that happens to look like a number.
That distinction causes more beginner confusion than anything else in Python, so it's worth getting straight now.
9 more parts in this lesson
Walkthroughs, code labs, mini-games and the checkpoint quiz unlock when you buy the course.