Vidyalelo
Python · Q130

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 130

Q130

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

A.
['a', 'b', 'c', 'd']
Answer
B.
['a b c d']
C.
['a#b#c#d']
D.
['abcd']

Answer: Option A

Solution

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