Hello everyone, I have some file data and after reading this data using the readlines() function, I have a list of lists for all the lines in the file. The data is textual and contains different information in each line, can anyone tell me efficient ways of how I can convert individual lists into a single phrase, sentence or a string? For example:
A line of file:
['data', 'science', 'dojo', 'management', '\n']
Desired outputs:
data_science_dojo_management
data science dojo management
data-science-dojo-management