I have a list like this:
a=[[[[5]]]]
and I would like to reduce the nests and get result as below:
a=[5]
I think it's not a big deal, but I don't know how to do it and find no way to this.... Thank you very much
I have a list like this:
a=[[[[5]]]]
and I would like to reduce the nests and get result as below:
a=[5]
I think it's not a big deal, but I don't know how to do it and find no way to this.... Thank you very much