Examveda

What will be the output of the following Python code?
re.split('\W+', 'Hello, hello, hello.')

A. ['Hello', 'hello', 'hello.']

B. ['Hello, 'hello', 'hello']

C. ['Hello', 'hello', 'hello', '.']

D. ['Hello', 'hello', 'hello', "]

Answer: Option D


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

Join The Discussion

Related Questions on Regular Expressions in Python