forked from tdwojak/Python2017
18 lines
341 B
Python
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() |