# Combining Conditions with and, or and not

and is True only when both conditions are True, or is True when at least one is, not flips True and False, and in checks whether text appears inside other text, which together turn a real rule with several parts into one condition.

![Cheat sheet: Combining Conditions with and, or and not](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/9a294831ceb441cabe8f4ed2e2b95dcb.webp)

- Category: Python
- Level: Apprentice
- Tags: Logical Operators (python), Membership Operator (in), python, Truthy and Falsy (python)
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/python-and-or-not-cheat-sheet
