Skip to content

Instantly share code, notes, and snippets.

@mmasztalerczuk
Created October 29, 2019 15:16
Show Gist options
  • Save mmasztalerczuk/ce6cdb96ba0dcfe627c422b5e56584ba to your computer and use it in GitHub Desktop.
Save mmasztalerczuk/ce6cdb96ba0dcfe627c422b5e56584ba to your computer and use it in GitHub Desktop.
>>> l
['1234', '5678']
>>> [sum(x) for x in [map(int, list(x)) for x in l]]
[10, 26]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment