Python Ternary Operator (IIF)

August 3, 2019
is_success = True
text = 'SUCCESS' if is_success else 'FAIL'
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.