Create list from string

John Machin sjmachin at lexicon.net
Fri Jun 13 10:34:07 EDT 2008


On Jun 14, 12:15 am, ericdaniel <eric.acev... at gmail.com> wrote:
> Hi,
>
> I'm new to Python and I need to do the following:
>
> from this:   s = "978654321"
> to this :      ["978", "654", "321"]
>
> Any help is appreciated
>

Homework?

Have you read the Python tutorial (section 3.1.2 Strings)?



More information about the Python-list mailing list