Conditional Expressions in Python 2.4

A.M alanalan at newsgroup.nospam
Thu Jun 1 19:04:10 EDT 2006


Hi,



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

http://www.python.org/dev/peps/pep-0308/



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,

Alan





More information about the Python-list mailing list