What is membership operator?
Answers
Answered by
1
Answer:
The membership operators in Python are used to test whether a value is found within a sequence. For example, you can use the membership operators to test for the presence of a substring in a string.For example, 'Hello' in 'Hello world' returns True because the substring Hello is present in the string Hello world!
Explanation:
Similar questions