ID unique Python
# uuid docs: https://docs.python.org/3/library/uuid.html
import uuid
print(uuid.uuid4()) # Output: 5d80dd85-da4a-4de1-8fe5-3069bbfd99ee
S3NS4
# uuid docs: https://docs.python.org/3/library/uuid.html
import uuid
print(uuid.uuid4()) # Output: 5d80dd85-da4a-4de1-8fe5-3069bbfd99ee
def get_unique(seq):
seen = set()
seen_add = seen.add
return [x for x in seq if not (x in seen or seen_add(x))]
sample_list = [10, 20, 10]
unique_values = (list(set(sample_list)))
original = ['a', 'b', 'a']
non_duplicates = list(set(original))
print(non_duplicates)
array = [1,2,3,4,1,2,3,6]
set(array)
#output [1,2,3,4,6]