>>> a =4;b =2;c =3 >>> c = 1+1 >>> if c == (b or a): print 'sucess' ... sucess >>> if c == (a or b): print 'sucess' ... >>>