What will be the output of the following Python code?
sentence = 'we are humans'
matched = re.match(r'(.*) (.*?) (.*)', sentence)
print(matched.group())
sentence = 'we are humans'
matched = re.match(r'(.*) (.*?) (.*)', sentence)
print(matched.group())A. ('we', 'are', 'humans')
B. (we, are, humans)
C. ('we', 'humans')
D. 'we are humans'
Answer: Option D

Join The Discussion