I have a list containing various strings, and I want to be able to choose a particular element in the list, and concatenate it with a new string.
I thought this might do it:
checklist = [[0] + 'test' for [0] in checklist]
But it doesn't work. Any suggestions?
checklist[index] += 'test'should work. Just make sure that you have the index you want to modify in theindexvariable.