Truth Table In Python