I've got a code like this:
a=[['1','2','3'], ['4','5','6']]
for i in range(len(a)):
a[i][i]=int(a[i][i])
print(a)
Output:
[[1, '2', '3'], ['4', 5, '6']]
It only converted the first value into an integer and left the rest as a string. Is there a solution to this?