On Jan 26, 2:26 pm, sl33k_ <ahsanbag...@gmail.com> wrote:
> How does "return True" and "return False" affect the execution of the
> calling function?

>>> def f1():
        pass

>>> print f1()
None


>>> def f2():
        return

>>> print f2()
None


>>> def f3():
        return True

>>> print f3()
True


>>> def f4():
        return False

>>> print f4()
False


>>> def f5():
        return 'Strawman'

>>> print f5()
Strawman


...any questions?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to