I need algorithm for my task

MRAB python at mrabarnett.plus.com
Wed Nov 5 13:49:01 EST 2014


On 2014-11-05 18:05, C at rlos wrote:
> I thing this work:
>
> stg='pythonpython'
> foundationline=stg[ 0:( stg [ 1: ].index( stg[ 0 ])+1 ) ]
>
It doesn't work for the final example or "barbaz".




More information about the Python-list mailing list