List slicing selecting parts of lists

suggest change

Syntax

Remarks

a[-1]    # last item in the array
a[-2:]   # last two items in the array
a[:-2]   # everything except the last two items

(source)

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


List slicing:
*List slicing selecting parts of lists

Table Of Contents
31Set
61List slicing
166Gzip