What Will Be The Output Of The Following Python Codep Pre #489
What will be the output of the following Python code?</p> <pre><code class="language-python"> nums = set([1,1,2,3,3,3,4,4]) print(len(nums)) </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.1.
What will be the output of the following Python code?
nums = set([1,1,2,3,3,3,4,4]) print(len(nums))
7
Error, invalid syntax for formation of set
4
8