Skip to content

Glossary: Python Basics

Comparison

Also written: comparisons

An expression that asks a yes-or-no question about two values, such as `stock > 0`. The answer is always `True` or `False`.

Where the book teaches it

Related terms

==