Find the mid element using Python.
Implement find_mid(nums), where nums is a non-empty list of integers, and return its middle value. For an even-length list, return the second of the two middle elements. The expected solution should use linear time and constant extra space.
def find_mid(nums):