# Exercise - Write 'if' statements

## Exercise: Use logic to examine a object's size

You will start your project by creating the code to determine if a piece of space debris is of a dangerous size. For this exercise we will use an arbitrary size of 5 meters cubed (5 m3); anything larger is a potentially dangerous object.&#x20;

For this step you will be presented with the goal for the exercise, followed by an empty cell. Enter your Python into the cell and run it. The solution is at the bottom of the exercise.&#x20;

In the cell below, add a variable named `object_size` and set it to 10 to represent 10 m3. Then add an `if` statement to test if `object_size` is greater than `5`. If it is, display a message saying **We need to keep an eye on this object**. Otherwise, display a message saying **Object poses no threat**.&#x20;

Your code could look like the following:

```python
object_size = 10
if object_size > 5:
    print('We need to keep an eye on this object')
else:
    print('Object poses no threat')
```

## Desired output

When you run the notebook you should see the following result:

```
We need to keep an eye on this object
```


---

# 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-2-use-boolean-logic-in-python/exercise-write-if-statements.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.
