Examveda

What will be the output of the following Python code?
re.split(r'\s+', 'Chrome is better than explorer', maxspilt=3)

A. ['Chrome', 'is', 'better', 'than', 'explorer']

B. ['Chrome', 'is', 'better', 'than explorer']

C. ('Chrome', 'is', 'better', 'than explorer')

D. 'Chrome is better' 'than explorer'

Answer: Option B


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

Join The Discussion

Related Questions on Regular Expressions in Python