How do I get a slice of a string held in a tuple?

Lorenzo Thurman lorenzo at diespammerhethurmans.com
Sun Apr 8 12:34:22 EDT 2007


I have tuple which hold a string in tup[0]. I want to get a slice of 
that string. I thought I would do something like:
tup[0][start:end]
But this fails. How do I go about it? I googled this and found a couple 
of references, but no solution.
TIA



More information about the Python-list mailing list