# Flashcards: 08-project

**Front:** random

**Back:** import random loads the built-in tool for chance.

---

**Front:** randint

**Back:** random.randint(1, 10) picks a whole number from 1 to 10.

---

**Front:** input

**Back:** input("Your guess: ") gives the player's answer as text; int() converts it.

---

**Front:** while True

**Back:** while True: repeats forever, until something stops the loop.

---

**Front:** break

**Back:** break exits a loop the moment the player wins.

---

**Front:** counter

**Back:** tries = tries + 1 counts guesses, one more each round.

---

**Front:** plain-words design

**Back:** Describe the game in four sentences, then turn each sentence into code.

---

**Front:** one change

**Back:** Change a working program one thing at a time, then run it.

---

