blob: 105c27a305b9d88597d7e540146b2c4f79b59ba0 [file] [log] [blame] [edit]
# This program adds up integers in the command line
import sys
import typing
try:
total = sum(int(arg) for arg in sys.argv[1:])
print('sum =', total)
except ValueError:
print('Please supply integer arguments')