Q44
What will be the output of the following code:import repattern = re.compile(r'b[A-Z]+b')result = pattern.findall('Hello, WORLD!')print(result)
A.
['Hello', 'WORLD']
AnswerB.
An error will occur
C.
['Hello,', 'WORLD!']
D.
['H', 'W']
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board