I have an list of string elements in python elements and would like edit each element in elements with so I have a new element. See code below (it doesn\'t work
elements
You can use list comprehensions:
elements = ["%{}%".format(element) for element in elements]