Question: Write a function additions that takes four parameters numberi, number2, number3, number4 and returns two integers (1. the sum of the first two numbers and

 Write a function additions that takes four parameters numberi, number2, number3,

Write a function additions that takes four parameters numberi, number2, number3, number4 and returns two integers (1. the sum of the first two numbers and 2. the sum of the last two numbers) to the calling function. Save the function in a PyDev library module named functions.py Write a main program t04.py that takes four numbers from the user in a single line and splits them into four separate numbers. It then passes the numbers to the additions and displays the two numbers returned by the function. Sample run (Sample keyboard input is underlined): Enter four numbers separated by space: 1 2 3 4 Sum of the first two numbers is 3 and the sum of last two is 7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!