human
Give me a Python function to simple way to remove duplicates.
assistant
Here is a Python function to simple way to remove duplicates

import random

def _remove_duplicates(lst):
    """Remove duplicates from a list."""
    seen = set()
    return [x for x in lst if not (x in seen or seen.add(x))]

# Enter the list
lst = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Calling the function
print((_remove_duplicates(lst)))

#Example Output
# [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

#Remember to inspect code for bugs.