(test) ? a:b

ast nomail at invalid.com
Wed Oct 22 10:29:43 CEST 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