Examveda

What will be the output of the following Python code?
>>> a={3,4,5}
>>> b={5,6,7}
>>> a|b

A. Invalid operation

B. {3, 4, 5, 6, 7}

C. {5}

D. {3,4,6,7}

Answer: Option B


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python