I have a 2D list that looks like this:
table = [[\'donkey\', \'2\', \'1\', \'0\'], [\'goat\', \'5\', \'3\', \'2\']]
I want to change the la
This will work:
table = [[row[0]] + [int(v) for v in row[1:]] for row in table]
However you might want to think about doing the conversion at the point where the list is first created.