Vidyalelo
Python · Q75

Regular Expressions in Python

Programming · Python · question 75

Q75

What will be the output of the following Python code? a = re.compile('0-9') a.findall('3 trees')

A.
[]
B.
['3']
C.
Error
Answer
D.
['trees']

Answer: Option C

Solution

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