Which operator is used in Python to directly check whether a key exists in a…

PYQ IBPS SO CRP SPL-XIV (2024)

Which operator is used in Python to directly check whether a key exists in a dictionary?

  1. A.

    find() operator

  2. B.

    search() method

  3. C.

    in operator

  4. D.

    index() method

  5. E.

    contains() function

Attempted by 52 students.

Sign up free to check your answer

Sign up free

Explore the full course: Ibps So It Mains

Loading lesson…