Vidyalelo
Python · Q66

Regular Expressions in Python

Programming · Python · question 66

Q66

What will be the output of the following Python code? re.findall('good', 'good is good') re.findall('good', 'bad is good')

A.
[‘good’, ‘good’]
[‘good’]
Answer
B.
(‘good’, ‘good’)
(good)
C.
(‘good’)
(‘good’)
D.
[‘good’]
[‘good’]

Answer: Option A

Solution

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