py-basic/src/adder.py

11 lines
181 B
Python
Raw Normal View History

2023-04-20 22:52:52 +02:00
#!/usr/bin/env python3
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)
2023-04-20 22:52:52 +02:00
print(result)