given a list
lt=[1,2,[3,[5,[6,[7]]]]]
I know this is a basic question and I have done it with for loops but, I need to understand how this basic question can be done in a single or two lines. This was asked to me in an interview.
return [1,2,3,5,6,7]