On Mon, Oct 10, 2011 at 8:26 AM, Praveen Singh <c2praveen30...@gmail.com>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 - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor