Contact: aviboots(AT)netvision.net.il
40,769 questions
53,151 answers
573 users
def flatten_nested_list(nested_list): return [item for sublist in nested_list for item in sublist] nested_list = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] print(flatten_nested_list(nested_list)) ''' run: [1, 2, 3, 4, 5, 6, 7, 8, 9] '''