import numpy as np y = np.array(((1,2,3),(4,5,6),(7,8,9))) OUTPUT: print(y.flatten()) [1 2 3 4 5 6
Is there a shortcut to make a simple list out of a list of lists in Python? I can do it in a for loop, but is