Last 4 Letters of String

Reedick, Andrew jr9445 at ATT.COM
Mon Feb 25 09:51:21 EST 2008



> -----Original Message-----
> From: Tim Chase [mailto:python.list at tim.thechases.com]
> Sent: Monday, February 25, 2008 8:34 AM
> To: Reedick, Andrew
> Cc: Robert Rawlins - Think Blue; python-list at python.org
> Subject: Re: Last 4 Letters of String
> 
> > How would you get the last 4 items of a list?
> 
> Did you try the same "get the last 4 items" solution that worked
> for a string?
> 
>    lst[-4:]


The idea was to ask a question that would help the original poster to
answer their own question.  =)



*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA621





More information about the Python-list mailing list