adplus-dvertising
frame-decoration

Question

Is the following piece of code valid?
a={1,2,3}
b={1,2,3,4}
c=a.issuperset(b)
print(c)

a.

False

b.

True

c.

Syntax error for issuperset() method

d.

Error, no method called issuperset() exists

Posted under Python

Answer: (a).False

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Is the following piece of code valid?