Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Flatten a list solution in Clear category for Flatten a List by svartmetall
def flat_list(array):
array = str(array).replace('[', '').replace(']', '').replace(',', '').strip()
return list(map(int, array.split(' '))) if array else []
Aug. 29, 2017
Comments: