Look at the index values of the list.
alist=[[1],[2]]
Here alist[1] is [2], so alist[1][0] is 2.
4%1 is 0.
solved Why are lists giving different value?
Look at the index values of the list.
alist=[[1],[2]]
Here alist[1] is [2], so alist[1][0] is 2.
4%1 is 0.
solved Why are lists giving different value?