Q. What will list('abc') return?

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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