Answer to Question #284429 in Python for vaibhav

Question #284429

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

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


1
Expert's answer
2022-01-03T04:28:14-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS