list1.append(list2) returns None
Edward Kozlowski
ekozlowski1 at gmail.com
Wed Dec 20 22:50:56 EST 2006
Pyenos wrote:
> def enlargetable(table,col):
> return table.append(col)
>
> def removecolfromtable(table,col):
> return table.remove(col)
>
> print enlargetable([[1],[2],[3]],[4]) # returns None
>
> Why does it return None instead of [[1],[2],[3],[4]] which I expected?
return the table. Ex:
def enlargetable(table, col):
table.append(col)
return table
More information about the Python-list
mailing list