I\'m very new to python. I need a simple and clear script to add quotes to every list elements. Let me explain more. Here is the my code.
parameters = [\'a\'
As you asked it, use this:
parameters = ['a', 'b', 'c'] ', '.join(map(lambda x: "'" + x + "'", parameters))
Since you're creating an SQL query, please use your database library's features regarding input sanitation (example for mysqldb). You don't want to end up with an issue like Bobby Tables.