Trinary operator?

Philipp Lenssen lenssen at hitnet.rwth-aachen.de
Wed Apr 17 13:48:30 EDT 2002


Not that it's a big deal since there's many ways to do that, but can I use
something like
    verboseGender = (gender == 'm') ? 'male' : 'female'
in Python?





More information about the Python-list mailing list