color_list = ["Red","Green","White" ,"Black"]
color_list = ["Red","Green","White" ,"Black"]
print( "%s %s"%(color_list[0],color_list[-1]))
Output:
Red Black
color_list = ["Red","Green","White" ,"Black"]
color_list = ["Red","Green","White" ,"Black"]
print( "%s %s"%(color_list[0],color_list[-1]))
Output:
Red Black
Python program to find the roots of Quadratic equation
Python code to find sum of elements in given array
Python program to find the largest of three numbers
Python program that accepts an integer (n) and computes the value of n+nn+nnn
Append and read in file handling in python
Write a Python program to get a string which is n (non-negative integer) copies of a given str
Python program to accept a filename from the user and print the extension of that
How to add all number in list in python
Python program to find the Factorial of any number
program to display the examination schedule
Python program to print the calendar of a given month and year