Nested to Flatten list
Given a nested list, write python code to flatten the list.Note: The input list will strictly have 2 levels, i.e. the list will be of the form [[1,2],[3,4]]. Inputs like [1,[2,3]] and [[1,[2,3],4],5] are not applicable. Nest_list = [[1,2,3],[4,5,6],[7,8,9]] #List to be flattenedflat_list = [] for i in range(len(Nest_list)): #Traversing through the main listfor j… Read More Nested to Flatten list