Como posso alcançar de perto?: A partir de C + + / C # em Python?
Em C # eu poderia facilmente escrever o seguinte:
string stringValue = string.IsNullOrEmpty( otherString ) ? defaultString : otherString;
Existe uma maneira rápida de fazer a mesma coisa em Python ou estou preso com uma instrução 'if'?