Created
February 27, 2014 22:55
-
-
Save systemsoverload/9261417 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def compute_something(values): | |
for v in values: | |
if v < 100: | |
raise Exception("Thats not a big enough number!") | |
else: | |
print("good dats the right amount") | |
try: | |
compute_something([100, 200, 300, 400, 500, 1501025, 1250015, 125005]) | |
except: | |
print("one of the values was too low!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment