Robotics & Artificial Intelligence
Which of the following is a membership operator?
- and
- or
- in
- None of these
Getting Started
2 Likes
Answer
in
Reason — The in operator is a membership operator used in Python to check whether a value exists in a sequence such as a string, list, or tuple.
Answered By
2 Likes
Related Questions
The statement 5 % 4 will return …………… .
- 0
- 1
- 2
- 3
The statement 5 // 2 will return …………… .
- 2
- 2.5
- 5
- 0
Which keyword in Python is used to import a module?
- include
- input
- import
- system
Fill in the blanks:
- Python is a ……………. which means it may be used to create a broad variety of applications.
- ……………. frameworks are used for web development in Python.
- ……………. is a tool kit in Python for GUI development.
- The suitable data type to store only True or False is …………….. .
- Lists are ……………. and ……………. are immutable in Python.