I have a Python function which returns a tuple with a boolean and string
def check_something():
# ...
return bool_value, str_messsage
Is there a way I can use the output of this function in an if
statement using the boolean and assign the string value to a variable in the if
statement
if not check_something():
# ...