Which of the following creates a pattern object?
A. re.create(str)
B. re.regex(str)
C. re.compile(str)
D. re.assemble(str)
Answer:A
Which of the following creates a pattern object?
A. re.create(str) B. re.regex(str) C. re.compile(str) D. re.assemble(str)
Explanation: It converts a given string into a pattern object.