I have the following problem:
I have a string that contains multiple E-Mail adresses. These adresses are not static. I pull them from my database. So for example when the adresses are pulled and I print the string the output is:
mails = 'email1', 'email2', 'email3'
Now I want to make a list out of the string. So my code is:
list = [mails]
But when I print the list, I get the following result:
["'email1', 'email2', 'email3'"]
How can I remove the double quotes, so that the output looks like this?
['email1', 'email2', 'email3']
Thank you for your answers :)