-1

I have problem with converting

[['a'],['b'],['c']] --> ['a','b','c']

it seems simple but I am struggling for hours...

1 Answers1

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

Azarro
  • 1,776
  • 1
  • 4
  • 11