Create a Python function which takes a list, and prints out the third item of the list.
mylist = [1, 2, 3, 4, 5]
def thirdElement(mylist):
    """ Print out the third element of the list. """
    print(mylist[2])

thirdElement(mylist)