5.12 Maximum of Two Values - Python

Veröffentlicht am: 26 Januar 2017
auf dem Kanal: Kakra Detome
10,866
74

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 :)

--------------------------------------------------------------------------------------------------------------------------------------------------------------------


Auf dieser Seite können Sie das Online-Video 5.12 Maximum of Two Values - Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Kakra Detome 26 Januar 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 10,866 Mal angesehen und es wurde von 74 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!