Computer Science, asked by xditigupta, 3 months ago

membership operators in string with example. Python.

Answers

Answered by Anonymous
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 itzHitman
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