What will be the output of the following Python code?
s = 'welcome home'
m = re.match(r'(.*)(.*?)', s)
print(m.group())
s = 'welcome home'
m = re.match(r'(.*)(.*?)', s)
print(m.group())A. ('welcome', 'home')
B. ['welcome', 'home']
C. welcome home
D. ['welcome' // 'home' ]
Answer: Option C

Join The Discussion