Slicing Lists: Your Turn!#
We have a defined a list colors
as follows:
colors = ['violet', 'indigo', 'blue', 'green', 'yellow', 'orange', 'red']
Give the output for each of the following code snippets. Please use single quotes for your strings.
We have a defined a list colors
as follows:
colors = ['violet', 'indigo', 'blue', 'green', 'yellow', 'orange', 'red']
Give the output for each of the following code snippets. Please use single quotes for your strings.