Hello Everyone! Ultimately, we would use the predefined function max() to solve a question like this, but we recreated the wheel here to see a variation of the max() function! :) Thanks to @chaten(https://steemit.com/@chaten) for hinting(https://steemit.com/programming/@chat...) at this :)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Starting out with Python, Third Edition, Tony Gaddis
Chapter 5
Programming Challenges
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
12. Maximum of Two Values
Write a function named max that accepts two integer values as arguments and returns the value that is the greater of the two. For example if 7 and 12 are passed as arguments to the function, the function should return 12. Use the function in a program that prompts the user to enter two integer values. The program should display the value that is the greater of the two.
Starting out with Python. Third Edition. Tony gaddis.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Bitcoin Address - 1AbnaHDLG3xqmycNHKDKh1gPNst29Rkp6S
Thanks :)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------