2015-07-28

PYTHON - Short if-else

RESULT = [VALUE_IF_FALSE, VALUE_IF_TRUE][CONDITION]
 
r = [10, 20][0 == 0]

No comments:

Post a Comment