lists in data structures with examples
A list is an ordered data structure with elements seprated by a comma and enclosed within square brackets.
For example:List 1 and List 2 here contains a single type of data:
List 1=[2,3,4,5,6]
List 2=['Python','is','Awesome']
Here,list 1 has integers while list 2 has strings.Lists can also store mixed data types as shown in lost 3
List 3=[1,'Python',2,'is',3'Awesome']