What Will Be The Output Of The Following Python Code Snippetp #530
What will be the output of the following Python code snippet?</p> <pre><code class="language-python">s=set([1, 2, 3]) s.union([4, 5]) s|([4, 5])</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.5.
What will be the output of the following Python code snippet?
s=set([1, 2, 3]) s.union([4, 5]) s|([4, 5])
{1, 2, 3, 4, 5} {1, 2, 3, 4, 5}
Error {1, 2, 3, 4, 5}
{1, 2, 3, 4, 5} Error
Error Error