Does python have a neat built-in way to use an expression twice in one line - both as a condition AND for string formatting?
Use an expression twice in one line - as a condition AND for string formatting?