Vidyalelo
Python · Q49

Regular Expressions in Python

Programming · Python · question 49

Q49

What will be the output of the following Python code? re.split('mum', 'mumbai*', 1)

A.
Error
B.
[", 'bai*']
Answer
C.
[", 'bai']
D.
['bai*']

Answer: Option B

Solution

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