I tried this question using list but i am not able to access the list element how to access it as we do in array by a[k] how we do it in list?

plese tell me in this code about accessing the list element