Hello to all, How can I do
new_variable = (variable) ? True : False; in Python in one line? I want to do something like this: dic = {'item1': (variable) ? True-part : False-part} Any suggestions? Daniel -- http://mail.python.org/mailman/listinfo/python-list