Question 1: Complete the equation

Anne was given two integers to add together on a piece of paper:

X + Y

Right after getting the solution(Z), the family dog tore half of the paper that contains integer Y away. Help Anne find integer Y to make the equation complete again.

Write a Python function which accepts inputs X and Z from the user and compute Y.

Function Input Argument(s):

There will be 2 inputs.

  1. X (integer)
  2. Z (integer)

Function Return Value:

The program should print a single integer representing Y.

Example 1

Function Input Argument(s):

(6, 9)

Function Return Value:

3