Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80289

Re: I need algorithm for my task

Date 2014-11-05 18:49 +0000
From MRAB <python@mrabarnett.plus.com>
Subject Re: I need algorithm for my task
References <1962053862.5573720.1415210715670.JavaMail.zimbra@estudiantes.uci.cu>
Newsgroups comp.lang.python
Message-ID <mailman.15514.1415213345.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 2014-11-05 18:05, C@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".

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: I need algorithm for my task MRAB <python@mrabarnett.plus.com> - 2014-11-05 18:49 +0000
  Re: I need algorithm for my task Denis McMahon <denismfmcmahon@gmail.com> - 2014-11-06 03:14 +0000
  Re: I need algorithm for my task Denis McMahon <denismfmcmahon@gmail.com> - 2014-11-06 03:36 +0000
    Re: I need algorithm for my task Chris Angelico <rosuav@gmail.com> - 2014-11-06 14:47 +1100
    Re: I need algorithm for my task Denis McMahon <denismfmcmahon@gmail.com> - 2014-11-06 04:00 +0000
      Re: I need algorithm for my task Chris Angelico <rosuav@gmail.com> - 2014-11-06 15:14 +1100
        Re: I need algorithm for my task Denis McMahon <denismfmcmahon@gmail.com> - 2014-11-06 04:39 +0000
          Re: I need algorithm for my task Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2014-11-06 09:59 +0200
            Re: I need algorithm for my task wxjmfauth@gmail.com - 2014-11-06 00:57 -0800

csiph-web