"james <at> hal-pc.org" wrote in
news:[EMAIL PROTECTED]: 

> Max Erickson wrote:
>>>>the entire 26 character string from site A, but [1] how do i
>>>>crop it to 10 characters.
>> 
>> strings are slicable:
> 
> The only reason i've gotten this far is a basic understanding of
> syntax and programming in general :)
> care to enlighten me a little on how to do that?

I did. If you have some text in VARIABLE, and do something like:
substring=VARIABLE[:10], substring will be the first 10 characters of 
VARIABLE.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to