condition

An expression that is tested for being true or false, such as weight > 50, to decide what a program does next.

In more detail

Conditions appear in if, elif and while headings. They are usually comparisons joined with and, or and not, but any value can serve because Python judges its truthiness.

Related terms

Taught in

References

Certification courses