python :

BOOLEAN ALGEBRA