1.

The function of re.search is __________(a) Matches a pattern at the start of the string(b) Matches a pattern at the end of the string(c) Matches a pattern from any part of a string(d) Such a function does not exist

Answer» The correct option is (c) Matches a pattern from any part of a string

The best I can explain: The re module of Python consists of a function re.search. It’s function is to match a pattern from anywhere in a string.


Discussion

No Comment Found