Vidyalelo
Python · Q24

Regular Expressions in Python

Programming · Python · question 24

Q24

What is the output of the following code:import reresult = re.search(r'd2', 'There are 25 apples and 3 oranges.')print(result.group())

A.
25
Answer
B.
An error will occur
C.
2
D.
5

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board