If One Line

Skip Montanaro skip.montanaro at gmail.com
Thu Dec 25 11:26:50 EST 2014


I don't get an error.

>>> I = 1 if True else 2
>>> if I == 1: print("one")
...
one
>>>

What error did you get?

Skip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20141225/bd3a5ce8/attachment.html>


More information about the Python-list mailing list