Examveda

Is the following Python 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

Answer: Option A


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python