I want to strip all kinds of punctuation at the start of the string using Python. My list contains strings and some of them starting with some kind of punct
Pass the characters you want to remove in lstrip and rstrip
lstrip
rstrip
'..foo..'.lstrip('.').rstrip('.') == 'foo'