Python-Quizzes | Python Sets Quiz | Question 6

Last Updated :
Discuss
Comments

What is the output of the following program?

Python
set1 = {0, 2, 4, 6, 8}; 
set2 = {1, 2, 3, 4, 5}; 

print(set1 | set2) 

{0, 1, 2, 3, 4, 5}

{0, 1, 2, 3, 4, 5, 6, 8}

{ 6, 8}

None

Share your thoughts in the comments