Short if

Thomas Lindgaard thomas at it-snedkeren.BLACK_HOLE.dk
Wed Jul 7 11:14:45 CEST 2004


Hello

Does Python have a short if like C or PHP:

  bool = false
  string = 'This is ' + (( bool ) ? 'true' : 'false')

?

-- 
Mvh.
/Thomas




More information about the Python-list mailing list