adplus-dvertising
frame-decoration

Question

What is the output of the following code?
s1={1, 2, 3}
s2={4, 5, 6}
s1.isdisjoint(s2)
s2.isdisjoint(s1)

a.

True
False

b.

False
True

c.

True
True

d.

False
False

Posted under Python

Answer: (c).True
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 code?