Lesson 7: Text Variables — str
Variables can hold text, not only numbers. A string (str) is written between quotes — and the difference from numbers matters.
name = "Dana" stores the text Dana. Note: "10" with quotes is text, 10 without quotes is a number.
- string (str)
- A variable that holds text.