Last active
September 5, 2020 07:17
-
-
Save curegit/5510343e3e3ba53801204e624a85dd15 to your computer and use it in GitHub Desktop.
min max で3つの値の真ん中を求める
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mid(a, b, c): | |
return min(min(max(a, b), max(b, c)), max(c, a)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment