When I run this code in Python
# Get our list from the command line
Need assignment help for this question?
If you need assistance with writing your essay, we are ready to help you!
Why Choose Us: Cost-efficiency, Plagiarism free, Money Back Guarantee, On-time Delivery, Total Сonfidentiality, 24/7 Support, 100% originality
numbers = sys.argv.split(“,”)
# Your code goes here
total = 0
for x in numbers:
I get an error that says:
Program Output Traceback (most recent call last): File "sum.py", line 13, in print(sum(numbers)) File "sum.py", line 10, in sum total+=x TypeError: unsupported operand type(s) for +=: 'int' and 'str'
I don’t know what the error is saying. How can I fix this?