Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created May 27, 2016 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/ba3a8f54670245545d26af5cc20b4a9f to your computer and use it in GitHub Desktop.
Save chuck0523/ba3a8f54670245545d26af5cc20b4a9f to your computer and use it in GitHub Desktop.
# 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