# Introduction

Booleans are a common type in Python. Their value can only ever be one of two things: true or false. Understanding how to use Boolean values is critical, because you need them to write *conditional* logic.

## Scenario: Print warning messages

Suppose you're creating a program that identifies if a piece of space debris is a danger to a spacecraft. If the object is larger than a specified size and will come within range of the spacecraft, and maneuver needs to be performed to avoid a collision. Otherwise, the spacecraft can stay on course.&#x20;

In this module, you'll use Boolean keywords and operators to write several types of conditional expressions, and determine the spacecraft's reaction.&#x20;

## What will you learn?

By the end of this module, you'll be able to:

* Run code under various conditions by using `if`, `else`, and `elif` statements.&#x20;
* Combine conditional logic and create more complex conditions by using `and` and `or` operators

## What is the main objective?

This module teaches you how to use conditional logic to create decision-driven programs.&#x20;

## Prerequisites

You should be familiar with the concept of programming.&#x20;

You don't need to install Python to complete this module. You'll use interactive sandbox to complete the exercise.&#x20;

If you want to try out the code in the explanations, you might want to work through Get started with Python in Visual Studio Code first, if you haven't already. This module helps you prepare a Python environment.&#x20;


---

# 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/introduction.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.
