What is the advantages of sets? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

What is the advantages of sets?

7th Apr 2016, 10:53 AM
Ergash Zaripov
Ergash Zaripov - avatar
1 Resposta
+ 2
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