Aug-21-2020, 01:11 PM
Hi Sir, thank you for helping me out, am I very happy now, but for this.
here is problem
'''tuple inside set''' s = {(1, 2), (1, 2)} print(s[0][1])
Output:TypeError 'set' object is not subscriptable
I am good here, because with set, we can't predict the order, we may not use ithere is problem
''list inside set''' s = {[1, 2, 3], [3, 4, 5]} print(s[0])
Output:TypeError: unhashable type: 'list'
here I am using set only, but I think, I should get the same output as ago, why is it complaining about list?