1
0
forked from tdwojak/Python2017
Python2017/labs05/task02.py

17 lines
278 B
Python
Raw Normal View History

2018-01-19 22:06:33 +01:00
from task00 import suma
import sys
def main():
listToSum = sys.argv[1:]
for i in listToSum:
x = listToSum.index(i)
try:
float(i)
except:
listToSum[x] = 0
print(suma(listToSum))
if __name__ == "__main__":
main()