Is The Following Python Code Validp Pre Langpython #516
Is the following Python code valid?</p> <pre><code class="language-python"> a={1,2,3} b={1,2,3,4} c=a.issuperset(b) print(c) </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.3.
Is the following Python code valid?
a={1,2,3} b={1,2,3,4} c=a.issuperset(b) print(c)
False
True
Syntax error for issuperset() method
Error, no method called issuperset() exists