1
0
forked from tdwojak/Python2017
Python2017/labs05/task02.py
2018-01-26 14:57:33 +01:00

18 lines
341 B
Python

from task00 import suma
import sys
def main():
arg_list = sys.argv[1:]
float_arg_list = []
for arg in arg_list:
try:
float_arg=float(arg)
float_arg_list.append(float_arg)
except:
float_arg_list.append(0)
print(suma(float_arg_list))
if __name__ == '__main__':
main()