論理演算子(Python)

以下は、Pythonの論理演算子です。

A and B:論理積

A or B:論理和

not A:論理否定

ここで、ABは、論理演算の対象となる任意の式です。そして、それらの式の結果は、論理型(Python)です。