This should be quite simple but I can't find a simple solution. Frankly this should be a one liner.
In Python 3, how can you convert a list, such as
// This is bad.
//this is bad
//this is good
Both a lists
repr() forms are what you are asking for, assuming that the it is a list of simple strings.
If you have a more complicated structure and wish to transfer (serialize) to string form and back to object form you may want to look into the
>>> import json >>> json.dumps(['hello','world']) '["hello", "world"]'