Q. What does `split()` do in Python?

  • (A) Splits string into a list
  • (B) Joins list into a string
  • (C) Removes spaces
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) Splits string into a list
Explanation: `split()` divides a string into a list of substrings.
Explanation by: Mr. Dubey
`split()` divides a string into a list of substrings.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
59
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate