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

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