What Will Be The Output Of The Following Python Codep Pre #540
What will be the output of the following Python code?</p> <pre><code class="language-python">s1={1, 2, 3} s2={3, 4, 5, 6} s1.difference(s2) s2.difference(s1)</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} s2={3, 4, 5, 6} s1.difference(s2) s2.difference(s1)
{1, 2} {4, 5, 6}
{1, 2} {1, 2}
{4, 5, 6} {1, 2}
{4, 5, 6} {4, 5, 6}