Created
October 29, 2019 15:16
-
-
Save mmasztalerczuk/ce6cdb96ba0dcfe627c422b5e56584ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> 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