[EMAIL PROTECTED] wrote:

There is just a single \ at the end of every item. My list is as below:
['Results v1.0/', 'Results v1.1/']

so,

if x.endswith('\\'):

is that correct?

if your list contains forward slashes, maybe you should test for forward slashes and not backward slashes.

</F>

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to