Vidyalelo
Python · Q31

Regular Expressions in Python

Programming · Python · question 31

Q31

What will be the output of the following Python code? re.escape('new**world')

A.
'new world'
B.
'new\\*\\*world'
Answer
C.
'**'
D.
'new', '*', '*', 'world'

Answer: Option B

Solution

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