I know i can find from a string with str.find
and find from a list with list.index
but here's my question:
'12345'.find('3') >>> [1,2,3,4,5].index(3)
'12345'.find('234') >>> [1,2,3,4,5].?
Edit: I understand that there is no such a thing as what i asked but i need to write extra code for it.
thanks to all.