Vidyalelo
Python · Q12

Regular Expressions in Python

Programming · Python · question 12

Q12

What is the output of the following code:import reresult = re.findall(r'bw+b', 'Hello, world!')print(result)

A.
['Hello', 'world']
B.
An error will occur
Answer
C.
['Hello,', 'world!']
D.
['H', 'w']

Answer: Option B

Solution

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