1. True
2. False
False
1. Error, no method called update for set data type
2. {1, 2, 3, 4, 5}
3. Error, list can’t be added to set
4. Error, duplicate item present in list
{1, 2, 3, 4, 5}
1. {2,3}
2. Error, duplicate item present in list
3. Error, no method called intersection_update for set data type
4. {1,4,5}
{2,3}
1. {1,2,3}
2. Error, copying of sets isn’t allowed
3. {1,2}
4. Error, invalid syntax for remove
{1,2}
1. {1,2,3}
2. Error, invalid syntax for add
3. {1,2,3,4}
4. Error, copying of sets isn’t allowed
{1,2,3}
1. 0
2. {1,2,3,4}
3. {1,2,3}
4. Nothing is printed
Nothing is printed
1. {1,2}
2. Error as difference between a set and frozenset can’t be found out
3. Error as unsupported operand type for set data type
4. frozenset({1,2})
{1,2}
1. 5
2. 23
3. 18
4. Invalid syntax for sum method, too many arguments
23
1. {2,4,6}
2. Error, set comprehensions aren’t allowed
3. {8, 2, 10, 4, 6}
4. {8,10}
{8, 2, 10, 4, 6}
1. 8
2. Error, unsupported operand ‘+’ for sets
3. 6
4. Nothing is displayed
Error, unsupported operand ‘+’ for sets