

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What does 'in' operator do in Python?
In Python, in and not in operators are called membership operators. Their purpose is to check if an object is a member of a certain sequence object like string, list, or tuple. The in operator returns true if object is present in sequence, false if not found
>>> 'p' in 'Tutorialspoint' True >>> 'c' in 'Tutorialspoint' False >>> 10 in range(0,5) False
- Related Questions & Answers
- What does 'is' operator do in Python?
- What does colon ':' operator do in Python?
- What does 'not in' operator do in Python?
- What does 'is not' operator do in Python?
- What does '?' do in C/C++?
- What does 'weight' do in tkinter?
- What does the '@' prefix do in PHP?
- What does 'by' keyword do in Kotlin?
- What does 'show processlist' command do in MySQL?
- How to do string concatenation without '+' operator in Python?
- How does the 'in' operator work on a tuple in Python?
- What does the 'tearoff' attribute do in a Tkinter Menu?
- What is 'delete' Operator in JavaScript?
- What is 'new' Operator in JavaScript?
- What is 'void' Operator in JavaScript?
Advertisements