Vidyalelo
Python · Q69

Regular Expressions in Python

Programming · Python · question 69

Q69

What will be the output of the following Python code? a=re.compile('[0-9]+') a.findall('7 apples and 3 mangoes')

A.
['apples' 'and' 'mangoes']
B.
(7, 4)
C.
['7', '4']
Answer
D.
Error

Answer: Option C

Solution

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