[Tutor] A simple list question...
Richard Querin
rfquerin at gmail.com
Fri Sep 8 05:28:11 CEST 2006
On 9/7/06, Kent Johnson <kent37 at tds.net> wrote:
> No, it doesn't. You are confused somewhere; my guess is your original
> data has newlines.
Sorry, my bad. When I created the original list I was splitting a
string in two pieces. The latter portion of the string had a newline
at the end. I had taken the slice with [index:] instead of [index:-1].
Thanks for the help and the tips regarding other ways to do it.
More information about the Tutor
mailing list