Answer:
Explained
Explanation:
Data Type specifies the processor how much amount of memory to be reserved for a variable.
For example :If a variable is declared as String or Integer this tells the processor to stored this much of space for this variable to store the value.
List :
1.List is sort of an array used to store values of different data types
2.Lists are ordered .Element in the list are elements in a list are indexed according to a definite sequence and placed at a specific index.Lists can hold different data types.
Here is an example of List ,List = ['a', 1,'b',4,[a,b,c,1]
1. Dictionary is an dis ordered collection of data values, used to store data values .
2.Dictionary is for key,value maps , Keys of a Dictionary are (should be ) unique and of immutable data type such as Strings, Integers and tuples.
Dict = {1: 'Apple', 2: 'Boy', 3:'God',4:[1, 2, 3, 4]}
Each unique key holds a value. So it depends on the requirement or scenarios where we have to chose between list or dictionary