Immutability of sets elements

Sets are mutable meanwhile we can say that the elements of sets are immutable , as in list , its also mutable and its elements are also be mutable and we can update its elements but while in sets we cant modifie the sets elements

2 Likes

@DEVANSHUBISHT66

yes correct, because sets are unhashable.

1 Like