Vidyalelo
Python · Q90

Regular Expressions in Python

Programming · Python · question 90

Q90

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

Answer: Option D

Solution

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