List
Whenever you want to maintain a collection of items, usually of the same datatype, you go for a list. For example, you want to keep a note of all holidays in a calendar year. How can you do that? One way would be to store them as a
list of dates. What would this list look like? A typical list of holidays would look like the following:
[ 1st January, 26th January, 15th August, 2nd October ]
So this is just a collection or a list of dates.
Record
At a very basic level, you use a record when you wish to store diverse information related to some person or thing. Consider a typical report card. It has several fields. Some of them are: name, date of birth, subject marks, rank. Notice that the datatype of the fields are not uniform. Some of them are strings, while the others are integers. At the same time, the binding factor among all these different fields is that they all point to the information concerning a particular student. We represent this record as follows:
Name: "xyz"
DOB: "1st Jan, 1950"
Marks: "88"
Rank: 1
Hope this makes the distinction clear.
Thanks,
Karthik
Instructor, Computational Thinking