Created
March 7, 2013 11:12
-
-
Save wwgist/5107354 to your computer and use it in GitHub Desktop.
PYTHON: check list items on the ANY condition
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
# 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