Q. Which of the following operators in python evaluates to “true” if it does not find a variable in the specified sequence otherwise “false”?

  • (A) **
  • (B) is
  • (C) not in
  • (D) //
πŸ’¬ Discuss
βœ… Correct Answer: (C) not in
Explanation: “X not in mySeq” will return True if X is not an element of mySeq and False otherwise.
Explanation by: Rajeev Malhotra
“X not in mySeq” will return True if X is not an element of mySeq and False otherwise.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
254
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Rajeev Malhotra
Publisher
πŸ“ˆ
87%
Success Rate