mode == 1 ? TRUE : FALSE as a Lambda function

dave dfarning at localhost.localdomain
Tue Oct 21 19:21:05 EDT 2003


I recently started using python and am trying to create the following four
statements as Lambda Functions.

mode == 1 ? TRUE : FALSE
mode == 2 ? TRUE : FALSE
mode == 3 ? TRUE : FALSE
mode == 4 ? TRUE : FALSE

Thanks
Dave Farning




More information about the Python-list mailing list