English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What is the difference between List and Dictionary? - Computer Science

Advertisements
Advertisements

Question

What is the difference between List and Dictionary?

Distinguish Between

Solution

List Dictionary
The list is an ordered set of elements. Dictionary is a data structure that is used for matching one element (Key) with another (Value).
The index values can be used to access a particular element. In the dictionary, a key represents an index and a key may be a number of a string.
Lists are used to look up a value. Dictionary is used to take one value and look up another value.
shaalaa.com
Introduction to List
  Is there an error in this question or solution?
Chapter 9: Lists, Tuples, Sets and Dictionary - Evaluation [Page 169]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 9 Lists, Tuples, Sets and Dictionary
Evaluation | Q 6. | Page 169
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×