Examveda

What will be the output of the following code:
import re
result = re.findall(r'd{1,3}', 'There are 25 apples and 300 oranges.')
print(result)

A. ['25', '300']

B. An error will occur

C. ['25', '0']

D. ['2', '3']

Answer: Option A


This Question Belongs to Python Program >> Regular Expressions In Python

Join The Discussion

Related Questions on Regular Expressions in Python