Doubt regarding datatypes(records and lists)

48 views
Skip to first unread message

Aaron Varghese

unread,
Oct 8, 2020, 7:40:23 AM10/8/20
to Discussion forum for Computational Thinking
Is it right in thinking that all list(datatypes) are a record(datatype) but not the vice versa?

if not, what is the right way to easily distinguish between these two datatypes?

Computational Thinking Support 1

unread,
Oct 8, 2020, 1:17:22 PM10/8/20
to Aaron Varghese, Discussion forum for Computational Thinking
No, that is not right.

List: It is a collection of values of the same datatypes. e.g. Alphabets = [a - z, A - Z], Numbers = [0 - 9]
Record:  It is a collection of values of different datatypes. e.g. Student information = {Student 1: [name, maths marks, phy marks, DoB, address, mob no.], Student 2: [name, maths marks, phy marks, DoB, address, mob no.],  Student 3: [name, maths marks, phy marks, DoB, address, mob no.]} 

On Thu, Oct 8, 2020 at 5:10 PM Aaron Varghese <aracka...@gmail.com> wrote:
Is it right in thinking that all list(datatypes) are a record(datatype) but not the vice versa?

if not, what is the right way to easily distinguish between these two datatypes?

--
You received this message because you are subscribed to the Google Groups "Discussion forum for Computational Thinking" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cs1001-discus...@nptel.iitm.ac.in.
To view this discussion on the web visit https://groups.google.com/a/nptel.iitm.ac.in/d/msgid/cs1001-discuss/fc58d6bc-3705-481c-bf11-46d298ac2a2dn%40nptel.iitm.ac.in.


--
Thanks & Regards,
Omkar Joshi
Course Instructor (Computational Thinking)
Online Degree Programme
IIT Madras
Reply all
Reply to author
Forward
0 new messages