Find the Kth element of a list: solution

Run the following doctest to verify that the solution given works as expected.

>>> def element_at(some_list, position):
...     return some_list[position-1]
>>>
>>> a_list = [0, 1, 2, 3, 4, 5, 6, 7]
>>> element_at(a_list, 3)
2
>>> another_list = ['a', 'b', 'c', 'd', 'e', 'f']
>>> element_at(another_list, 1)
'a'
List of all problems