In python pls:
Instructions:
This homework will require you to create two functions: FindSum and FindDifference. The main objective is to first calculate the sum of two numbers, then use the result to find the difference between the sum and a third number.
Create a function called FindSum:
The function should accept two numbers and calculate their sum.It should return the sum and print the result in the following format:
"The sum of ____ and ____ is ____"
Create a function called FindDifference:
The FindDifference function will accept the sum from FindSum and a third number.It should calculate the difference between the sum and the third number, and then print the result in the following format:
"The difference between ____ and ____ is ____"
Output Format:
Inside the FindSum function, after calculating the sum, print:
"Inside the Function, the Sum is: _____"
Inside the FindDifference function, after calculating the difference, print:
"Inside the Function, the Difference is: _____"
Outside both functions, print the values of the original numbers as:
"The original numbers are: ____ and ____"
Requirements:
Function Definitions:
FindSum(num1, num2): This function takes two integers and returns their sum.FindDifference(sum, num3): This function takes the sum and a third number, and returns their difference.
Outside the Functions:
Call FindSum with two numbers and store the result in a variable.Use that result as an argument to call FindDifference along with a third number.Print the original numbers and their corresponding results.
Test Cases: You should test the functions with the following values:
num1 = 20, num2 = 15, num3 = 10num1 = 50, num2 = 25, num3 = 10num1 = 75, num2 = 50, num3 = 30num1 = 100, num2 = 30, num3 = 50
Example Output:
For num1 = 20, num2 = 15, num3 = 10, the output should look like this:
Inside the Function, the Sum is: 35
The sum of 20 and 15 is 35
Inside the Function, the Difference is: 25
The difference between 35 and 10 is 25
The original numbers are: 20 and 15