list = [1,2,3,4,5,6,7]
print("length of list is = ",len(list))
print("middle element of the list =",list[int((len(list))/2)])