Is the only difference between sets and lists in Python the fact that you can use the union, intersect, difference, symmetric difference functions to compare two sets? Why c
Some more differences are:
hash function
to find an element whereas list is an array. Hence finding element in Set
is faster than in list
.