def f(mylist, data): newlist = mylist[:] # make a copy of mylist for i in range(len(mylist)): newlist[i] = mylist[i] + data return newlist
Name (required)
email (will not be published) (required)
Website