Generate a Python script that checks a list for duplicate elements.
Not applicable
def contains_duplicates(lst):
    seen = set()
    for x in lst:
        if x in seen:
            return True
        seen.add(x)
    return False