Question: Please help write this code for PYTHON: Two variables, x and y, supposedly hold strings of digits. Write code that converts these to integers and
Please help write this code for PYTHON:
Two variables, x and y, supposedly hold strings of digits. Write code that converts these to integers and assigns a variable z the sum of these two integers. Make sure that if either x and y has bad data (that is, not a string of digits), z will be assigned the value of -1.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
