Ternary Operator in Python
Carl Banks
invalidemail at aerojockey.com
Fri Apr 1 16:40:50 EST 2005
Terry Reedy wrote:
> "praba kar" <prabapython at yahoo.co.in> wrote in message
> news:20050401072442.73412.qmail at web8408.mail.in.yahoo.com...
> > Dear All,
> > I am new to Python. I want to know how to
> > work with ternary operator in Python. I cannot
> > find any ternary operator in Python. So Kindly
> > clear my doubt regarding this
>
> A unary operator has one operand; a binary operator has two operands;
a
> ternary operator has three operands. Python has none built-in,
Not so fast, my friend. What about the expression "0.0 < a < 1.0"?
--
CARL BANKS
More information about the Python-list
mailing list