A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`split()` divides a string into a list of substrings.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.