Write a Python code snippet to print the unique elements of a given list.
def print_unique(my_list):
    seen = set()
    for x in my_list:
        if x not in seen:
            print(x)
            seen.add(x)