1.

Which of the following statements is used to create an empty set?(a) { }(b) set()(c) [ ](d) ( )I had been asked this question by my college professor while I was bunking the class.My query is from Sets topic in section Tuples and Sets of Python

Answer»

Correct OPTION is (b) SET()

To EXPLAIN: { } CREATES a DICTIONARY not a set. Only set() creates an empty set.



Discussion

No Comment Found

Related InterviewSolutions