colour_list=["red","blue","green","black"]
print('first and last in array')
print('%s %s'%(colour_list[0],colour_list[3]))
#array starts from 0 
print('%s %s'%(colour_list[0],colour_list[-1]))
#goes back to the end in a loop
print('%s %s'%(colour_list[0],colour_list[-5]))
#above is not a valid statement
colour_list=["red","blue","green","black"]
print('first and last in array')
print('%s %s'%(colour_list[0],colour_list[3]))
#array starts from 0 
print('%s %s'%(colour_list[0],colour_list[-1]))
#goes back to the end in a loop
print('%s %s'%(colour_list[0],colour_list[-5]))
#above is not a valid statement
#array starts from 0 #goes back to the end in a loop #above is not a valid statement