Due to the way elements are stored in a set, it's faster to check whether an item is part of a set, rather than part of a list. Sets are generally used when you need uniqueness of elements.
23rd May 2016, 12:13 PM
James Flanders
Vous avez souvent des questions comme celle-ci ?
Apprenez de maniĂšre plus efficace, gratuitement :