/
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. 15.12.2024 at 09:46 am / Artful Rule-Bending
  2. 29.03.2023 at 09:38 am / Moving Away from Todoist - to Taskwarrior, SSH & Dropbox - Part 1
  3. 25.08.2020 at 09:03 pm / Hamstrung Limitations
  4. 16.09.2019 at 10:32 am / Legal Practice & Taking From Software Best Practices
  5. 29.08.2018 at 11:06 am / Damascus Differences
  6. 17.12.2017 at 12:00 am / To Know C
  7. 11.12.2013 at 12:00 am / Lighting Wizardry
  8. 28.11.2013 at 12:00 am / ケチ - Scroogean Niggardliness
  9. 16.03.2012 at 12:00 am / Sentient Vocal Directives
  10. 14.08.2010 at 12:00 am / 百花繚乱
© Wan Zafran. See disclaimer.