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 :)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sur cette page du site, vous pouvez voir la vidéo en ligne 5.12 Maximum of Two Values - Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Kakra Detome 26 janvier 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 10,866 fois et il a aimé 74 téléspectateurs. Bon visionnage!