Report Bug

Qus

What will be the output of the following Python code?

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

निम्नलिखित 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’]


Solution
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