/
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. 27.06.2021 at 12:49 pm / Eloquent Javascript / Chapter 2, Exercise 03
  2. 04.06.2020 at 05:25 pm / Music and Neural Pathways
  3. 04.06.2020 at 09:43 am / A Traveling Minstrel's Piano
  4. 31.12.2019 at 09:03 pm / Reflections - 43 Things I Learned or Did In 2019
  5. 31.12.2018 at 06:23 pm / Why Plain Text
  6. 12.12.2017 at 12:00 am / Innocent Until Proven Guilty
  7. 08.02.2016 at 12:00 am / Eye to Eye (Jonathan Young's Version)
  8. 17.12.2014 at 12:00 am / 午・午年
  9. 16.02.2014 at 12:00 am / Don't Care Too Much About Gear
  10. 08.11.2013 at 12:00 am / Red Riding Hood's Examination-in-Chief
© Wan Zafran. See disclaimer.