I have a 'n' dimensional array which I want to convert to 1'd
[[1', '2], '3', [4', '5', '6']]
to
[1', '2, '3', 4', '5' , '6']
I do not want to use numpy flatten function but want to achieve it through core python and efficient way. Apart from iterating them is there any inbuilt function to do it for me?