On Thu, Sep 3, 2009 at 7:27 PM, Abhishek Mishra<[email protected]> wrote:
> Hi, I'm trying to pass 5 as default value for this function...
>
> ------------------------------------------------
> def gimmetaste(length=5):
>        print length
>
> if __name__ == '__main__':
>        print gimmetaste()
> ------------------------------------------------

check this http://python.pastebin.com/m57fee658

The 5 is from the output of line 2
The None is line 5 printing the return value of gimmetaste. Since
you're not 'return'ing anything, it's Non



-- 
~noufal
http://nibrahim.net.in
_______________________________________________
BangPypers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to