Vidyalelo
Python · Q72

Regular Expressions in Python

Programming · Python · question 72

Q72

What will be the output of the following Python code? s = 'welcome home' m = re.match(r'(.*)(.*?)', s) print(m.group())

A.
('welcome', 'home')
B.
['welcome', 'home']
C.
welcome home
Answer
D.
['welcome' // 'home' ]

Answer: Option C

Solution

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