Simple list.append() question

Bill Wilkinson bwilk_97 at yahoo.com
Tue Apr 25 00:19:20 CEST 2000


| One way is:
|
| x = map(lambda x:[], [[]]*3)
|
| although there has to be a prettier way...
|
| -- bjorn
|

l = [[][:]] * 3

:)







More information about the Python-list mailing list