Home / Engineering / Python Programming / Question

M

Mr. Dubey • 51.43K Points
Coach

Q.) What is the output of the following program?
line = "What will have so will"
L = line.split('a')
for i in L:
print(i, end=' ')

(A) [„What‟, „will‟, „have‟, „so‟, „will‟]
(B) Wh t will h ve so will
(C) What will have so will
(D) [„Wh‟, „t will h‟, „ve so will‟]
Correct answer : Option (B) - Wh t will h ve so will

Share

Discusssion

Login to discuss.