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 that accepts an integer (n) and computes the value of n+nn+nnn.
Write a Python program to count the number 4 in a given list.
Write a Python program to find out what version of Python you are using.
Write a Python program to get the volume of a sphere with radius six.
Write a Python program to get n (non-negative integer) copies of the first 2 characters of a given string. Return n copies of the whole string if the length is less than 2.