Hi, I'm trying to pass 5 as default value for this function...

------------------------------------------------
def gimmetaste(length=5):
        print length
        
if __name__ == '__main__':
        print gimmetaste()
------------------------------------------------

Output -
5
None

I wonder why I get a None in the output?
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to