
Sometimes you may need to convert a 2D list into a 1D list, or flatten a list. Here is how to flatten list of lists in Python.
Sometimes you may need to convert a 2D list into a 1D list, or flatten a list. Here is how to flatten list of lists in Python.