a question about "return"

yaru22 yaru22 at gmail.com
Mon Jul 3 23:12:08 EDT 2006


In one of the examples in the book I'm reading, it says:

def __init__(self):
    ...
    ...
    ...
    return

It has nothing after "return". I expected it to have some number like 0
or 1.

What does it mean to have nothing after return?

Why do we even include "return" if we are not putting any value after?

Thanks :)

Regards,

Brian




More information about the Python-list mailing list