What does the function re.match do?
(a) matches a pattern at the start of the string
(b) matches a pattern at any position in the string
(c) such a function does not exist
(d) none of the mentioned
(a) matches a pattern at the start of the string
(b) matches a pattern at any position in the string
(c) such a function does not exist
(d) none of the mentioned
The correct option is (a) matches a pattern at the start of the string
To explain I would say: It will look for the pattern at the beginning and return None if it isn’t found.