4 ms·
In that case, you can always opt to return bool(return_value), which lets you return True or False without the ugly if / else : )
by krallin 14y ago
In that case, you can always opt to return bool(return_value), which lets you return True or False without the ugly if / else : )
- StavrosK 14y agoIndeed, or just "return var == True".