Vidyalelo
Python · Q83

Regular Expressions in Python

Programming · Python · question 83

Q83

What will be the output of the following Python code? sentence = 'we are humans' matched = re.match(r'(.*) (.*?) (.*)', sentence) print(matched.group(2))

A.
'are'
B.
'we'
C.
'humans'
Answer
D.
'we are humans'

Answer: Option C

Solution

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