myset=set()
myset.add(2) #it is accepted
myset.add("name") #it is also accepted
The line below is throwing an error. I just want to know as per definition of sets it is an unordered pair which won't keep duplicate copies. But why can't it store lists?
myset.add([1,2,3])