how to convert a list of list to a single list inputhon code example
Example: flatten a list of lists python
flattened = [val for sublist in list_of_lists for val in sublist]
flattened = [val for sublist in list_of_lists for val in sublist]