What does the 'in' operator do in Python?
A. Checks if two values are equal
B. Checks if a value is greater than another
C. Checks if a value is in a sequence
D. Checks if a value is not in a sequence
Answer: Option C
Solution(By Examveda Team)
The in operator checks if a value is present in a sequence.Related Questions on Variable Names and Operators
Which of the following is a valid variable name in Python?
A. my-variable
B. 123variable
C. _my_variable
D. $variable
What is the maximum possible length of an identifier?
A. 31 characters
B. 63 characters
C. 79 characters
D. none of the mentioned
Join The Discussion