2. Print the second and fourth items from the list.
3. Given the tuple named grades that contains "A", "B", "C", "D" and "F"
4. Print the first and last items from the tuple.
Right Answer:
# Step 1
colors = ["red", "blue", "green", "yellow", "pink"]
# Step 2
print(colors[1]) # Output: blue
print(colors[3]) # Output: yellow
# Step 3
grades = ("A", "B", "C", "D", "F")
# Step 4
print(grades[0]) # Output: A
print(grades[-1]) # Output: F