Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@drmingle
Created May 4, 2018 22:59
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 drmingle/27c30824d10372a66a3bbd44763e15ff to your computer and use it in GitHub Desktop.
Save drmingle/27c30824d10372a66a3bbd44763e15ff to your computer and use it in GitHub Desktop.
title author date
any(), all(), max(), min(), sum()
Damian
05/04/2018

Generate Data

data = [340, 564, 250, 120, 230]

any()

# Return true if any element is True
any(data)
True

all()

# Return true if all elements are True
all(data)
True

max()

# Return max value
max(data)
564

min()

# Return the min value
min(data)
120

sum()

# Return the total value
sum(data)
1504
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment