Short Answer
Yes, there is. This is how you do it in python
output = "true" if conditon_to_be_statisfied else "false"
Long Answer
If condition_to_be_statisfied result is valid, then the value of the variable output will be anything on the left of the reserved word if. If the contion_to_be_statisfied result is invalid, then the value of the variable output will be anything right of the reserved word else.
Average Rating