What will be the output of the following python code? a= {1, 2, 3} b= {4, 5} c= a + b print (c)
What will be the output of the following python code? a= {1, 2, 3} b= {4, 5} c= a + b print (c)
Explanation
+
operator is not supported for sets; sets can only be combined using methods like union()
or |
.TypeError
.