Programming question - Given an array of arrays, flatten into a single array. Ex: [[1,2,3,4], [5,6],[7]]. Output [1,2,3,4,5,6,7]. Once done, increased complexity to nested arrays within each array.
Sigiloso
list_of_list = [[1,2,3,4], [5,6],[7]] new_list = [] for i in list_of_list: for j in i: new_list.append(j) print(new_list)