Skip to content

Instantly share code, notes, and snippets.

@systemsoverload
Created February 27, 2014 22:55
Show Gist options
  • Save systemsoverload/9261417 to your computer and use it in GitHub Desktop.
Save systemsoverload/9261417 to your computer and use it in GitHub Desktop.
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