I have the following list
a = [ documents/17361862_1455215234500329_3000435910753279754_n.jpg, documents/17022254_1431360773552442_8479986202582740765_n_gqbi7GG.jpg]
and I want to achieve the following
[ "documents/17361862_1455215234500329_3000435910753279754_n.jpg", "documents/17022254_1431360773552442_8479986202582740765_n_gqbi7GG.jpg"]
I tried this
x= ['{0}'.format(i) for i in a]
print x
but I get the following error
File "list.py", line 3
a = [ documents/17361862_1455215234500329_3000435910753279754_n.jpg, documents/17022254_1431360773552442_8479986202582740765_n_gqbi7GG.jpg]
^
SyntaxError: invalid syntax
how can I add quotes so as to get
[ "documents/17361862_1455215234500329_3000435910753279754_n.jpg", "documents/17022254_1431360773552442_8479986202582740765_n_gqbi7GG.jpg"]