Created
July 17, 2018 16:37
-
-
Save alexbw/5c69e756b4d7349bdd594c5dcbb87a79 to your computer and use it in GitHub Desktop.
Asserts
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 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