I have a list of lists like this,
sm = [['123'],['456'],['789'],[],['101']]
then I flatten the list,
sm_flattened = [val for sublist in sm for val in sublist]
Now, I get this (sm_flattened),
['123', '456', '789', '101']
However, I need my sm_flattened like this,
['123', '456', '789', '', '101']
How can I get this? Any suggestions would be nice!