Use a set instead of a list.