membership operators in string with example. Python.
Answers
Answered by
0
Answer:
Two membership operators exist in Python: in – evaluates to True if the value in the left operand appears in the sequence found in the right operand. For example, 'Hello' in 'Hello world' returns True because the substring Hello is present in the string Hello world!.
Answered by
8
Explanation:
Two membership operators exist in Python: in – evaluates to True if the value in the left operand appears in the sequence found in the right operand. For example, 'Hello' in 'Hello world' returns True because the substring Hello is present in the string Hello world!.
Similar questions