[Newbie]:Need help with "slicing"

gtnorton at my-deja.com gtnorton at my-deja.com
Thu Aug 26 06:29:34 EDT 1999


        Trying to figure out how to slice lists.  For example:

          >>> L = ['help', 'with', 'slice']

                       How do I slice to just show:

          >>>['help', 'slice']1st and last -with L[?:?]

                                             Thanks


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list