Saqib H. answered 04/12/20
PhD in Computer Science with expertise in Python
First, get the index of the middle element using the below assignment:
midElementIndex = (length(Array) + 1)/2
then, use this index to output the middle element as follows:
Array[midElementIndex]