A

Admin • 833.24K Points
Coach

Q. What is the output of `print(list('abc'))`?

  • (A) ['abc']
  • (B) ['a', 'b', 'c']
  • (C) ['a', 'abc']
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 21
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`list('abc')` splits the string into a list of characters.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.