Vidyalelo
Python · Q22

Regular Expressions in Python

Programming · Python · question 22

Q22

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

A.
['Hello', 'hello', 'hello.']
B.
['Hello, 'hello', 'hello']
C.
['Hello', 'hello', 'hello', '.']
D.
['Hello', 'hello', 'hello', "]
Answer

Answer: Option D

Solution

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