Write a Python program to find the middle element of a list.
[1,3,5,7,9,11]
def middle_element(list):
    mid = len(list) // 2
    return list[mid]

result = middle_element([1,3,5,7,9,11])
print(result)