Fwd: Dumb Stupid Question About List and String

Alban Nona python.koda at gmail.com
Wed Sep 1 05:47:08 CEST 2010


In fact, the First list (wich contain "Elm001, Elm002, Elm003) will be
generated automatically from files that I have in a directory, that's why I
cant write the same code for Elm002, 003, etc... Because Ill not know how
many Elm there will be.


2010/8/31 MRAB <python at mrabarnett.plus.com>

> On 01/09/2010 03:00, Alban Nona wrote:
>
>  @MRAB, thank you, but what if there are like 40 entries like 'Elem00x' ?
>> is there a way to do it automaticaly ?
>>
>>  If you can do it for 'Elem001', I'm sure you could write some code to
> produce a list of 'Elem001', 'Elem002', etc, and check whether any are
> substrings, just as was done for 'Elem001'.
>
>
>  @Xavier: ShaDoW, WorldPositionPoint (which is the same thing as
>> WordPointCloud passe) :)
>>
>> Anyway, thank you !
>>
>>  [snip]
> Do you want separate lists for 'Elem001', 'Elem002', etc, or all in the
> same list?
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100831/2d31d36a/attachment.html>


More information about the Python-list mailing list