#!/usr/bin/python x = None y = 0 z = 1 if not x and not y: print "a is true" # yes a if not x or not z: print "b is true" # yes b if (x or y) and (x or z): print "c is true" # no c