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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
172
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
90%
Success Rate