Q2
What is the purpose of the re.compile() function in Python?
A.
It compiles a regular expression pattern into a regular expression object
AnswerB.
It converts strings to regular expressions
C.
It defines a new class
D.
It imports the re module
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board