LIST
List is a collection of comma-separated values within square brackets.
The elements of list can be of a type->string,integer,float or even a list.
Items in a list need not to be of same type.
CREATING A LIST:
SLICING:
-4 -3 -2 -1 NEGATIVE INDEXING
A N U J LIST
0 1 2 3 POSITIVE INDEXING
, COMPARISION:
PROGRAMS:
Q1:
Ans1:
Q2:
List is a collection of comma-separated values within square brackets.
The elements of list can be of a type->string,integer,float or even a list.
Items in a list need not to be of same type.
CREATING A LIST:
SLICING:
-4 -3 -2 -1 NEGATIVE INDEXING
A N U J LIST
0 1 2 3 POSITIVE INDEXING
, COMPARISION:
PROGRAMS:
Q1:
Ans1:
Q2: