py-basic/src/adder.py

9 lines
157 B
Python
Raw Normal View History

2022-11-29 09:43:18 +01:00
import sys
if __name__ == "__main__":
result = 0
for arg in sys.argv:
if(arg.isdecimal()):
result += int(arg)
print(result)