# Exercise - Create and use Python lists

## Exercise: Use lists to store planet names

Lists allow you to store multiple values in a single variable. In this notebook you'll create a project to display information about the planets.

This exercise is broken into a series of steps. For each step you will be presented with the goal for the step, followed by an empty cell. Enter your Python into the cell and run it. The solution for each step will follow each cell.&#x20;

## Add all planets to a list

First, create a variable named `planets`. Add the eight planets (without Pluto) to the list. The planets are:

* Mercury
* Venus
* Earth
* Mars
* Jupiter
* Saturn
* Uranus
* Neptune

Finish by using `print` to display the list of planets.

Your code should look something like this:

{% code overflow="wrap" %}

```python
planets = ["Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptunr"]
print(planets)
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.pqtkha.com/programming/technology/python/microsoft-training-python-for-beginners/module-5-introduction-to-lists-in-python/exercise-create-and-use-python-lists.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
