Examveda

What will be the output of the following Python code?
>>>list("a#b#c#d".split('#'))

A. ['a', 'b', 'c', 'd']

B. ['a b c d']

C. ['a#b#c#d']

D. ['abcd']

Answer: Option A


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python