Determining if a list (array) has duplicate elements in Python https://from-locals.com/python-list-duplicate-check/