Home » Programming Language (coding) » Python MCQs » What will be the output of the following Python code?

What will be the output of the following Python code?

What will be the output of the following Python code?

>>> a={5,4}
>>> b={1,2,4,5}
>>> a<b

A. {1,2}
B. True 
C. False
D. Invalid operation 

Answer: B. True

Discussion Board:

Take Part in Discussion:

Your email address will not be published.

Solve : *
10 − 8 =