Vidyalelo
Python · Q89

Python Sets MCQs: Exam

Programming · Python · question 89

Q89

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}
Answer
C.
{5}
D.
{3,4,6,7}

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board