Study the following Python code. This code adds two numbers. Then increments each number by 1 and displays the result:
(input("Enter the value for x:"))
(input("Enter the value for y:"))
+y
print("x + y = ", z)
x = x + 1
y = y + 1
z = x + y
print ("Add 1 to x and add 1 to y, now z equals ", z)
The program running looks like this:
Walk through the code and explain what the result will be if the input is:
, y = 5
x=-1, y = 3