Apologies if this question has already been covered!I am trying to convert each element in this list of listsinto integer format. I have used two for loops to iterate through the list, in the same way we do it "C" There is an error that says " Object is not subscriptable" in Line 3 . Am i missing something obvious?
Here is the code:
l=[['1','2'],['3','4']]
for i in range(len(l)):
for j in range(len[i]):
l[j]=int(l[j])