A

Admin • 833K Points
Coach

Q. Which function can convert a string to a list of characters?

  • (A) chars()
  • (B) split()
  • (C) list()
  • (D) strlist()
  • Correct Answer - Option(C)
  • Views: 32
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`list('abc')` returns `['a', 'b', 'c']`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.