Last active
September 9, 2015 05:00
-
-
Save rohithreddy/3f31dac7fd94e95c6163 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
import sys | |
'''sum of digits in a number''' | |
print(sum(int(i) for i in sys.argv[1])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment