I like psav's code snippet, including the formal if/else. Python ternaries are handy but look backwards.