Posted By

tclancy on 03/25/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

indamix
thadwheeler


Python Ternary Operator


 / Published in: Python
 

URL: http://www.python.org/dev/peps/pep-0308/

  1. X if C else Y

Report this snippet  

You need to login to post a comment.