def logic(a, b): print 'a and b:', a and b print 'a or b:' , a or b print 'not a:' , not a