'How to convert list object to string list [duplicate]
I have problem with converting
[['a'],['b'],['c']] --> ['a','b','c']
it seems simple but I am struggling for hours...
Solution 1:[1]
You could use a list comprehension to do something as simple as
[element[0] for element in letters_list]
This remakes the list, extracting the 0-index element from each sublist
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Azarro |
