For now I have an object of list like this:
lst = [None, None, 'one', None, 'two', None]
I am trying to perform strip() on it and get a result like this:
strip(lst)
>> ['one', None, 'two']
left_strip(lst)
>> ['one', None, 'two', None]
Is there a graceful way of doing that?
ps: thanks 4 @woockashek's advice, I've changed the lst
From [None, None, 'one','two', None]
To [None, None, 'one', None, 'two', None]