You can do the same with
set(items), but it doesn’t preserve any kind of ordering. Output will be:{1, 2, 10, 5, 9}
! This works with hashable items.Source: Python cookbook
PY PyNotes @py_notes_uz · 207 subscribers 
set(items), but it doesn’t preserve any kind of ordering. Output will be:{1, 2, 10, 5, 9}
! This works with hashable items.