Variables can hold different kinds of data. Here are some examples:
| Variable | Value | Type |
|---|---|---|
| x | 10 | Integer (int) |
| price | 19.99 | Float (decimal) |
| name | "Samantha" | String (text) |
| is_online | True | Boolean (True/False) |
| colors | ["red", "blue", "green"] | List |
💡 Try to guess what happens if you type:
print(type(10))
print(type("Hello"))