[newbie] copying identical list for a function argument

Jean Dupont jeandupont314 at gmail.com
Mon Feb 3 16:36:24 EST 2014


I have a list like this:
[1,2,3]

The argument of my function should be a repeated version e.g.
[1,2,3],[1,2,3],[1,2,3],[1,2,3] (could be a different number of times repeated also)

what is the prefered method to realize this in Python?

any help would be really appreciated

kind regards,
jean




More information about the Python-list mailing list