You can convert the arguments to integers using int()
import sys
a = int(sys.argv[1]) b = int(sys.argv[2])
print a, b
print a+b
input: python mySum.py 100 200
output:
100 200
300
You can convert the arguments to integers using int()
import sys
a = int(sys.argv[1]) b = int(sys.argv[2])
print a, b
print a+b
input: python mySum.py 100 200
output:
100 200
300