NIELIT O Level Exam

<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">mylist=list("a#b#c#d".split('#'))<br></span><span style="font-size: 14px;">print(mylist)</span></pre><div><br></div>

What will be the output of the following Python code?

mylist=list("a#b#c#d".split('#'))
print(mylist)


निम्नलिखित Python कोड का आउटपुट क्या होगा?

mylist=list("a#b#c#d".split('#'))
print(mylist)

A. [‘a’, ‘b’, ‘c’, ‘d’]

B. [‘a b c d’]

C. [‘a#b#c#d’]

D. [‘abcd’]




Correct Answer is :

A. [‘a’, ‘b’, ‘c’, ‘d’]



Explanation
Execute in the shell to verify.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad