I am a newbie to programming, while I was learning about sets in Python I encountered this problem. when I pass a tuple as argument to add method, the tuple is included in set_1, whereas when I pass a list as argument to add method is causes a TypeError: unhashable type: 'list' in the code given below.
set_1 = {"a", "b", "c"}
set_1.add((1,2,3))
print(set_1)
set_1.add([4,5,6])
print(set_1)
Kindly, state the reason for this error and explain why hashing takes place while passing a list as argument into set.add() method