#given list of numbers
list=[3,7,5,1,6,3]
#use if else statement to define logical value(TRUE/FALSE)
if(list[0] == list[-1]):  #(list[0] == list[-1]) compares the firstElement and lastElement of the list.
    
    print("True")
#"else" statement is used when "if" statement is not ture.
else: 
    print("False")
