Q. What will the be the result of below Python code?
Code:
set1={1,2,3}
set1.add(4)
set1.add(4)
print(set1)
β
Correct Answer: (A)
{1,2,3,4}
set1={1,2,3}
set1.add(4)
set1.add(4)
print(set1)
You must be Logged in to update hint/solution