×

python · level 1 · unit 3 · lesson 1

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

Quotes turn a number into text.

Python sorts every value into a . Text in quotes is a string. A whole number with no quotes, like 12, is an . Same digits, different type, and Python treats them very differently.

Picture a front door with 12 painted on it, and a box of 12 eggs. The door number is a label you read, like "12". The eggs are an amount you can count and add, like 12.

Not sure which one you have? Ask type(). Its answer includes str for a string or int for an integer.

print(type("12"))
print(type(12))
print(12 + 12)

A number inside quotes is text, even when it looks like a number.