----- Original Message -----
> From: "ast" <nom...@invalid.com>
> To: python-list@python.org
> Sent: Wednesday, 22 October, 2014 10:29:43 AM
> Subject: (test) ? a:b
> 
> Hello
> 
> Is there in Python something like:
> 
> j = (j >= 10) ? 3 : j+1;
> 
> as in C language ?
> 
> thx

j = 3 if j >=10 else j+1

Cheers

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be 
privileged. If you are not the intended recipient, please notify the sender 
immediately and do not disclose the contents to any other person, use it for 
any purpose, or store or copy the information in any medium. Thank you.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to