Conditional Expressions in Python 2.4

A.M alanalan at newsgroup.nospam
Fri Jun 2 01:04:10 CEST 2006


I am using Python 2.4. I read the PEP 308 at:

I tried the statement:

a= "Yes" if 1==1 else "No"

but the interpreter doesn't accept it.

Do we have the conditional expressions in Python 2.4?

Thank you,


More information about the Python-list mailing list