What is the purpose of is, not and in operators?



What is the purpose of is, not and in operators?..

Answer / Ompal Singh

In Python, 'is' checks if two variables refer to the same object. 'not' is a logical operator that reverses the result of other comparisons (true becomes false and vice versa). The 'in' keyword checks if a value is found within a sequence (string, list, tuple, etc.).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Explain about membership operator in python?

1 Answers  


If you are ever stuck in an infinite loop, how will you break out of it?

1 Answers  


Can you learn python with no experience?

1 Answers  


Differentiate between .py and .pyc files?

1 Answers  


Explain how can you make a Python Script executable on Unix?

1 Answers  


How does python compare string and int?

1 Answers  


Which linux is best for python programming?

1 Answers  


What does mean in python?

1 Answers  


Define a method in Python?

1 Answers  


Purpose of "/" and "//" operator in python?

1 Answers  


Why does delegation performed in Python?

1 Answers  


Which ide is best for python on windows?

1 Answers  


Categories