string='98.87,100.91,22.12'
print(string)
98.87,100.91,22.12
then I want to add apostrophe like this
'98.87','100.91','22.12'
how can I do this?
thanks
Thanks all
I know I can use "'98.87'" to print
'98.87'
But actually I want to add apostrophe by code
Because I will get string from
string = request['string']
then I want to let this string in SQL query
SELECT * FROM table WHERE str IN ({}).format(string)
I wnat to result become to
SELECT * FROM table WHERE str IN ('98.87','100.91','22.12')