(test) ? a:b

ast nomail at invalid.com
Wed Oct 22 04:29:43 EDT 2014


Hello

Is there in Python something like:

j = (j >= 10) ? 3 : j+1;

as in C language ?

thx



More information about the Python-list mailing list