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 :)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
На этой странице сайта вы можете посмотреть видео онлайн 5.12 Maximum of Two Values - Python длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Kakra Detome 26 Январь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 10,866 раз и оно понравилось 74 зрителям. Приятного просмотра!