Skip to content

Glossary: Python Basics

if statement

Also written: if

An instruction that runs its indented lines only when its condition is true. It can be extended with `elif` and `else`.

Where the book teaches it

Related terms

elifelse