On 01/26/2011 03:26 PM, sl33k_ wrote:
How does "return True" and "return False" affect the execution of the
calling function?
Basically it will affect it in whatever way you design it to for example:
def lie_test(statement):
if statement is True:
return False
else:
return False
Now, this is psuedo code somewhat.
"if statement is True:" would always equate to "True" unless statement
was an empty string, None, or 0. As to return False if statement equals
true, look at the function name. It is testing to see if it is a lie,
and if it is true, then it's not a lie.
--
http://mail.python.org/mailman/listinfo/python-list