Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (7 sloc) 130 Bytes
>>> colors = ["blue", "red", "green"]
>>> print(colors[1])
red
>>> print(colors[-1])
green
>>> print(colors[1:])
['red', 'green']