📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    Which Python statement is used to create an empty

    set?
    A set() Correct Answer Incorrect Answer
    B {} Correct Answer Incorrect Answer
    C [] Correct Answer Incorrect Answer
    D () Correct Answer Incorrect Answer
    E empty() Correct Answer Incorrect Answer

    Solution

    {} creates an empty dictionary in Python, while set() creates an empty set.

    Practice Next
    ask-question