Python-Quizzes | Python Sets Quiz | Question 5

Last Updated :
Discuss
Comments

What is the output of the following program?

Python
set1 = {1, 2, 3} 
set2 = {4, 5, 6} 
print(len(set1 + set2)) 

3

6

Unexpected

Error

Share your thoughts in the comments