Examveda

What will be the output of the following Python code?
w = re.compile('[A-Za-z]+')
w.findall('It will rain today')

A. 'It will rain today'

B. ('It will rain today')

C. ['It will rain today']

D. ['It', 'will', 'rain', 'today']

Answer: Option D


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

Join The Discussion

Related Questions on Regular Expressions in Python