Answers for "list list string to list string python"

C
3

python string list to list

>>> import ast
>>> x = '[ "A","B","C" , " D"]'
>>> x = ast.literal_eval(x)
>>> x
['A', 'B', 'C', ' D']
>>> x = [n.strip() for n in x]
>>> x
['A', 'B', 'C', 'D']
Posted by: Guest on May-06-2021
0

convert list of strings to string

string Something = string.Join(",", MyList);
Posted by: Guest on August-25-2020

Code answers related to "list list string to list string python"

Code answers related to "C"

Browse Popular Code Answers by Language