Examveda

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

A. []

B. ['3']

C. Error

D. ['trees']

Answer: Option C


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

Join The Discussion

Related Questions on Regular Expressions in Python