Skip to content

Instantly share code, notes, and snippets.

@alexbw
Created July 17, 2018 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbw/5c69e756b4d7349bdd594c5dcbb87a79 to your computer and use it in GitHub Desktop.
Save alexbw/5c69e756b4d7349bdd594c5dcbb87a79 to your computer and use it in GitHub Desktop.
Asserts
def f(x):
assert x != 0, 'Do not pass zero!'
return x * x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment