Write a Python program to display the first and last colors from the following list.
color_list = ["Red","Green","White" ,"Black"]
color_list = ["Red","Green","White" ,"Black"]
print('first color from the list:', color_list[0])
print('last color from the list:', color_list[-1])
Comments
Leave a comment