Question: 1 4 . 2 2 Greatest Difference EXTRA CREDIT Individual Challenge This is an EXTRA CREDIT Individual Challenge. You must work alone to solve this

14.22 Greatest Difference EXTRA CREDIT Individual Challenge
This is an EXTRA CREDIT Individual Challenge. You must work alone to solve this problem. You may not collaborate or share work with other students. Everything you need to know to solve this problem has been covered in the course materials prior to this challenge. Review those materials to refresh your memory and to find things you might have missed.
Do not use any language or library features that have not been specifically covered in the prior course materials.
Problem Description and Given Info
Write (define) a function named greatest_difference, that takes three arguments (you can safely assume that all arguments will always be integers). When this function is called, it should determine which pair of argument values has the greatest difference. The function should return that difference.Do not use the Python min or max functions for this problem.
Examples:
greatest_difference(1,3,9) will return 8 because 1 and 9 have the greatest difference, and the difference is 8 greatest_difference(9,3,3) will return 6 because 3 and 9 have the greatest difference, and the difference is 6 greatest_difference(3,3,3) will return 0 because 3 and 3 have the greatest difference, and the difference is 0

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 Programming Questions!