2

counts = [int(a) for a in strings]
or
counts = map(int, strings)

fight

Comments
  • 0
    [int(a) for a in strings]

    The map example isn't the same in Python 3 anyway.
Add Comment