Created
May 27, 2016 22:54
-
-
Save chuck0523/ba3a8f54670245545d26af5cc20b4a9f to your computer and use it in GitHub Desktop.
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
# coding: UTF-8 | |
# リストから最大値・最小値の取得 | |
li = [1, 2, 3, 4, 5] | |
print(max(li)) # 5 | |
print(min(li)) # 1 | |
# リスト関数ではなく、汎用関数。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment