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

  • (A) ['abc']
  • (B) ['a', 'b', 'c']
  • (C) ['a', 'abc']
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) ['a', 'b', 'c']
Explanation: `list('abc')` splits the string into a list of characters.
Explanation by: Mr. Dubey
`list('abc')` splits the string into a list of characters.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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