So, I have a nested list (Let's call it A). It has a length of 2, and they should be considered separate lists. I want to iterate through these 2 separately, and remove the sublists that don't have equal length. For example, I want my output to be the same as A but with [['Table heading']] removed because it is not the same length as the other nested lists.
A=[[[['1'], ['2'], ['3'], ['4']],
[['x'],['y'],['z'],['w']],
[['a'],['b'],['c'],['d']],
[['11'], ['22'], ['33'], ['44']]],
[[['Table heading']],
[['A'], ['B'], ['C'], ['D']],
[['X'], ['Y'], ['Z'], ['W']],
[['1'], ['2'], ['3'], ['4']]]]
output=[[[['1'], ['2'], ['3'], ['4']],
[['x'],['y'],['z'],['w']],
[['a'],['b'],['c'],['d']],
[['11'], ['22'], ['33'], ['44']]],
[[['A'], ['B'], ['C'], ['D']],
[['X'], ['Y'], ['Z'], ['W']],
[['1'], ['2'], ['3'], ['4']]]]
A[1]if the last row was[['1'], ['2'], ['3'], ['4'], ['5']]?