What is the output of the following code:
import re
result = re.search(r'd{2}', 'There are 25 apples and 3 oranges.')
print(result.group())
result = re.search(r'd{2}', 'There are 25 apples and 3 oranges.')
print(result.group())
A. 25
B. An error will occur
C. 2
D. 5
Answer: Option A

Join The Discussion