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