> > Does Python have a short if like C or PHP: > > > > bool = false > > string = 'This is ' + (( bool ) ? 'true' : 'false') > > bool = False # check capitalisation! > string = 'This is ' + ('false','true')[bool] How about... >>> bool = 1 >>> string = 'this is ' + (bool and 'true' or 'false')