Skip to content

Instantly share code, notes, and snippets.

@rohithreddy
Last active September 9, 2015 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohithreddy/3f31dac7fd94e95c6163 to your computer and use it in GitHub Desktop.
Save rohithreddy/3f31dac7fd94e95c6163 to your computer and use it in GitHub Desktop.
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