list1.append(list2) returns None
Pyenos
pyenos at pyenos.org
Wed Dec 20 22:32:28 EST 2006
More information about the Python-list mailing list
Wed Dec 20 22:32:28 EST 2006
- Previous message (by thread): list1.append(list2) returns None
- Next message (by thread): list1.append(list2) returns None
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
- Previous message (by thread): list1.append(list2) returns None
- Next message (by thread): list1.append(list2) returns None
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list