D
Daniel Crespo
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
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