On 10/22/2014 01:29 AM, ast wrote:
Hello

Is there in Python something like:

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

as in C language ?

thx


Out of all of the replies, I don't think anyone
actually offered the answer:


    a if condition else b



--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to