0

I want to take a list that contains smaller lists which contain strings, to convert the strings inside the smaller lists into integers. For example:

lst=[["1","2"],["3","4"]] 

and return

[[1,2],[3,4]]. 

This is what I have but it returns the exact same list. I'm not sure where to go from here.

 a=0
 for i in lst:
    while a<len(i):
        for j in lst[a]:
            j=int(j)
        a=a+1
 print(lst)
dawg
  • 98,345
  • 23
  • 131
  • 206
Cam
  • 51
  • 1
  • 1
  • 4

0 Answers0