# Flashcards: 02-data

**Front:** variable

**Back:** name = "Mia" stores "Mia" under the name name.

---

**Front:** assignment

**Back:** name = "Mia" means store, not equals in the maths sense.

---

**Front:** update

**Back:** score = score + 5 updates a value from its old self.

---

**Front:** int

**Back:** 42 is a whole number.

---

**Front:** float

**Back:** 3.5 is a number with a decimal point.

---

**Front:** +

**Back:** 4 + 3 gives 7.

---

**Front:** -

**Back:** 4 - 3 gives 1.

---

**Front:** *

**Back:** 4 * 3 gives 12.

---

**Front:** /

**Back:** 7 / 2 gives 3.5, always a float.

---

**Front:** //

**Back:** 7 // 2 gives 3, the whole-number part.

---

**Front:** %

**Back:** 7 % 2 gives 1, the remainder.

---

**Front:** **

**Back:** 2 ** 3 gives 8, a power.

---

**Front:** string

**Back:** "Hello" is text in quotes.

---

**Front:** join

**Back:** "Hi" + "!" gives "Hi!"

---

**Front:** repeat

**Back:** "Ha" * 3 gives "HaHaHa"

---

**Front:** len

**Back:** len("Hello") gives 5, counting spaces too.

---

**Front:** first character

**Back:** word[0] is the first character; positions start at 0.

---

**Front:** brackets

**Back:** (4 + 3) * 2 gives 14; brackets override the normal order.

---

