Question #284429

 Write a Python program to display the first and last colors from the following list.

color_list = ["Red","Green","White" ,"Black"]


Expert's answer

color_list = ["Red","Green","White" ,"Black"]
print('first color from the list:', color_list[0])
print('last color from the list:', color_list[-1])

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS