-2

I have this list :
listOfWords = ["this","is","a","list","of","words"]
and I need to have [this is a list of words], with a List comprehension.

Cache Staheli
  • 3,510
  • 7
  • 32
  • 51
iratxe
  • 87
  • 9

1 Answers1

0

You mean a list with a single string item?

>>> [' '.join(["this","is","a","list","of","words"])]
['this is a list of words']
bakkal
  • 54,350
  • 12
  • 131
  • 107