Nguyễn Vân Anh
New member
What will be the output of the following Python code?
A. [‘Hello’, ‘hello’, ‘hello.’]
B. [‘Hello, ‘hello’, ‘hello’]
C. [‘Hello’, ‘hello’, ‘hello’, ‘.’]
D. [‘Hello’, ‘hello’, ‘hello’, ”]
Code:
re.split('\W+', 'Hello, hello, hello.')
B. [‘Hello, ‘hello’, ‘hello’]
C. [‘Hello’, ‘hello’, ‘hello’, ‘.’]
D. [‘Hello’, ‘hello’, ‘hello’, ”]