Skip to content

Instantly share code, notes, and snippets.

@wwgist
Created March 7, 2013 11:12
Show Gist options
  • Save wwgist/5107354 to your computer and use it in GitHub Desktop.
Save wwgist/5107354 to your computer and use it in GitHub Desktop.
PYTHON: check list items on the ANY condition
# start_list = [1,10,100,1000,10000]
if any(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