Examveda

What will be the output of the following Python code?
re.split(r'(n\d)=', 'n1=3.1, n2=5, n3=4.565')

A. Error

B. [", 'n1', '3.1, ', 'n2', '5, ', 'n3', '4.565']

C. ['n1', '3.1, ', 'n2', '5, ', 'n3', '4.565']

D. ['3.1, ', '5, ', '4.565']

Answer: Option B


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

Join The Discussion

Related Questions on Regular Expressions in Python