What Will Be The Output Of The Following Python Codep Pre #543
What will be the output of the following Python code?</p> <pre><code class="language-python">s1={1, 2, 3, 8} s2={3, 4, 5, 6} s1|s2 s1.union(s2)</code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs109 Python.
It can also be found in
gs gs109 Python Sets - Python Sets - Quiz No.6.
What will be the output of the following Python code?
s1={1, 2, 3, 8} s2={3, 4, 5, 6} s1|s2 s1.union(s2)
{3} {1, 2, 3, 4, 5, 6, 8}{1, 2, 4, 5, 6, 8} {1, 2, 4, 5, 6, 8}{3} {3}{1, 2, 3, 4, 5, 6, 8} {1, 2, 3, 4, 5, 6, 8}