Reading Tuple Data Exercise
Question 1 of 4
What will this code output?
colors = ('red', 'green', 'blue', 'yellow')
print(colors[1])
print(colors[-1])This will cause an error
green blue
green yellow
red blue
What will this code output?
colors = ('red', 'green', 'blue', 'yellow')
print(colors[1])
print(colors[-1])This will cause an error
green blue
green yellow
red blue