πŸ“Š Python
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

πŸ‘οΈ
43
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate