adplus-dvertising
frame-decoration

Question

What is the output of the following piece of code?
a={1,2,3}
b={1,2,3}
c=a.issubset(b)
print(c)

a.

True

b.

Error, no method called issubset() exists

c.

Syntax error for issubset() method

d.

False

Posted under Python

Answer: (a).True

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following piece of code?