Thursday, December 13, 2012

Ternary in python

xxx = ..... something
msg = xxx if xxx  else  "hello world"

or better:
msg = xxx or "hello world"

1 comment:

Anonymous said...

10bet Review 2021 ᐈ 10Bet Canada Review -
10Bet is a gambling website that 10bet has several different games including slot machines and bingo. The site has 인카지노 a nice selection of  Rating: 퍼스트카지노 8/10 · ‎Review by