/
11.02.2021 at 01:13 am
Cuttings

46 Simple Python Exercises/#02

Find the largest of three.

... Define a function max_of_three() that takes three numbers as arguments and returns the largest of them.

Code
                        def max_of_three(a, b, c):
    return max(a, b, c)


print(max_of_three(1, 13, 6))
                    
Filed under:
#
#
#
Words: 9 words approx.
Time to read: 0.04 mins (at 250 wpm)
Keywords:
, , , ,

Other suggested posts

  1. 01.04.2023 at 11:27 am / Search Notes Fast: With Taskwarrior, jq & ripgrep
  2. 11.02.2021 at 01:13 am / 46 Simple Python Exercises/#02
  3. 11.02.2021 at 12:56 am / 46 Simple Python Exercises/#01
  4. 23.08.2018 at 09:53 am / Nostalgic Non-Memories
  5. 06.10.2015 at 08:02 am / Subservient/Servile Written Malay
  6. 18.06.2015 at 12:00 am / Crisp Tweets
  7. 18.07.2014 at 12:00 am / Keep Learning Songs
  8. 07.07.2014 at 12:00 am / If I Cannot Strengthen Our Bench
  9. 03.01.2014 at 12:00 am / Write With Vigour
  10. 15.03.2012 at 12:00 am / Cel-Shaded Arena
© Wan Zafran. See disclaimer.