If One Line

Ian Kelly ian.g.kelly at gmail.com
Thu Dec 25 10:26:55 EST 2014


On Thu, Dec 25, 2014 at 8:18 AM, JC <chalao.adda at gmail.com> wrote:
>
> Hello,
>
> Is it possible in python:
>
> if ((x = a(b,c)) == 'TRUE'):
>         print x

No, assignments in Python are statements, not expressions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20141225/f8d15cda/attachment.html>


More information about the Python-list mailing list