On Mon, Oct 10, 2011 at 8:26 AM, Praveen Singh <[email protected]>wrote:
> print myList.append(numbers)
Your problem is with that statement.
>>> mylist = []
>>> x = mylist.append(3)
>>> x
>>> x is None
True
>>> help(mylist.append)
Help on built-in function append:
append(...)
L.append(object) -- append object to end
append returns None (all functions do, unless you explicitly return
something that is not None)
HTH,
Wayne
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor