Skip to content

Instantly share code, notes, and snippets.

@wwgist
Created March 7, 2013 11:15
Show Gist options
  • Save wwgist/5107370 to your computer and use it in GitHub Desktop.
Save wwgist/5107370 to your computer and use it in GitHub Desktop.
PYTHON: check list items on the ALL condition
# start_list = [1,10,100,1000,10000]
if all(item < 10 for item in start_list):
print 'Success'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment