Exercize to understand from three numbers which is more high

Chris Angelico rosuav at gmail.com
Tue Jan 29 16:25:01 EST 2019


On Wed, Jan 30, 2019 at 8:20 AM Bob van der Poel <bob at mellowood.ca> wrote:
> Isn't the easiest way to do this is:
>
>      sorted( [n1,n2,n3] )[-1]
>
> to get the largest value?

>>> help(max)

But the point of this exercise is not to use sorted() or max().

ChrisA



More information about the Python-list mailing list