def myfun(): colors_list = ["Red", "Green", "White", "Black"] print("%s %s" % (colors_list[0], colors_list[-1])) if __name__=="__main__": myfun()
Red Black
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Write a Python program to display the first and last colors from the following list.
Write a Python program to calculate the number of days between two dates.
Write a Python program that prints the calendar for a given month and year.
Write a Python program that checks whether a specified value is contained within a group of values.
Print out a set containing all the colors from a list which are not present in other list