Q. What is the output of the following program?

Code:
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?]
πŸ’¬ Discuss
βœ… Correct Answer: (B) Wh t will h ve so will

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
302
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
97%
Success Rate