adplus-dvertising
frame-decoration

Question

What is the output of the following piece of code when executed in the python shell?
>>> a={5,4}
>>> b={1,2,4,5}
>>> a<b

a.

{1,2}

b.

True

c.

False

d.

Invalid operation

Posted under Python

Answer: (b).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 when executed in the python shell?