I would like to help a 12-year old kid improve their programming skills. They know the basics of Python. Can you suggest an exercise that will have them create a simple game?
Certainly! A great exercise for a 12-year-old who knows the basics of Python is to create a simple text-based guessing game. This project will help them practice their programming skills while also being fun and engaging. Here's a step-by-step outline for the exercise:

### Project: Number Guessing Game

**Objective**: Create a game where the player has to guess a randomly generated number within a certain range.

#### Step 1: Setting Up
1. **Import the Random Module**: Start by importing the `random` module, which will help generate random numbers.
   
   ```python
   import random
   ```

#### Step 2: Generate a Random Number
2. **Generate a Random Number**: Use the `random.randint()` function to generate a random number between 1 and 100.
   
   ```python
   secret_number = random.randint(1, 100)
   ```

#### Step 3: User Input
3. **Get User Input**: Prompt the user to enter their guess and convert it to an integer.
   
   ```python
   guess = int(input("Guess a number between 1 and 100: "))
   ```

#### Step 4: Create a Loop
4. **Create a Loop**: Use a `while` loop to allow the user to keep guessing until they get the right answer.
   
   ```python
   attempts = 0
   while True:
       attempts += 1
      
 Sure, I'd be happy to help! Here's an exercise that will have your 12-year old kid create a simple number guessing game in Python:

Game Name: "Number Guessing Game"

Objective: The computer will randomly select a number between 1 and 100. The player will have to guess the number within a certain number of guesses.

Steps:

1. Generate a random number between 1 and 100. You can use the `random` module in Python to generate the random number.
```python
import random
number_to_guess = random.randint(1, 100)
```
2. Ask the player to guess the number. You can use the `input` function in Python to get the player's input.
```python
guess = int(input("Guess the number between 1 and 100: "))
```
3. Check if the player's guess is correct, too high, or too low.
```python
if guess == number_to_guess:
    print("Congratulations! You guessed the number.")
elif guess < number_to_guess:
    print("Try again. Your guess is too low.")
else:
    print("Try again. Your guess is too high