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 code to find sum of elements in given array
What is Break statement in python
Write a Python program to test whether a number is within 100 of 1000 or 2000
Python program to swap two variables
Python program to find H.C.F of two numbers
program to print the documents (syntax, description etc.) of Python built-in function(s)
Write Hello World Program in Python
program to display the examination schedule
Python program to swap first and last element of a list
Python Program to find the area of triangle
Python program for implementation of Quicksort Sort
Write a Python program to get the the volume of a sphere with radius 6