πŸ“Š Python
Q. Which of the following data types is ordered in Python?
  • (A) list
  • (B) set
  • (C) dictionary (before Python 3.6)
  • (D) frozenset
πŸ’¬ Discuss
βœ… Correct Answer: (A) list

Explanation: Lists maintain the insertion order. Sets and frozensets are unordered. Dictionaries preserve order only from Python 3.7 onward.

Explanation by: Rati Dubey
Lists maintain the insertion order. Sets and frozensets are unordered. Dictionaries preserve order only from Python 3.7 onward.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
51
Total Visits
πŸ“½οΈ
7 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
89%
Success Rate