Examveda

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

A. Error

B. [", 'bai*']

C. [", 'bai']

D. ['bai*']

Answer: Option B


This Question Belongs to Python Program >> Regular Expressions In Python

Join The Discussion

Related Questions on Regular Expressions in Python