Question: I need a solution for my programming lab in python code Two yariables, x and y, supposedly hold strings of digits. Write code that converts
Two yariables, x and y, supposedly hold strings of digits. Write code that converts these to integers and assigns a yariable z the sum of these two ntegers. 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
