Which operator checks whether an element exists in a sequence?

Options

  • A. is
  • B. in
  • C. ==
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. in

Detailed Explanation

Explanation: The in operator checks whether an element belongs to a sequence.