Lists

Lamonte Harris pyth0nc0d3r at gmail.com
Sun Aug 26 20:37:52 CEST 2007


Ok

a = ['spam', 'eggs', 100, 1234]

So basically when I do
print a[1:-1]

that will display all the choices in the array besides 0,3

Slicing was kinda weird, just making sure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070826/210d3625/attachment.html>


More information about the Python-list mailing list