Q. Which built-in function returns a new sorted list from an iterable?

  • (A) sort()
  • (B) sorted()
  • (C) arrange()
  • (D) order()
πŸ’¬ Discuss
βœ… Correct Answer: (B) sorted()
Explanation: sorted returns a new list without modifying the original.
Explanation by: Mr. Dubey
sorted returns a new list without modifying the original.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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