a if condition else b
ref: https://stackoverflow.com/questions/394809/does-python-have-a-ternary-conditional-operator