Created
December 28, 2019 17:08
-
-
Save kelvinndmo/31d113fb5813f745c297f6ef03c4aacf 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 add(x, y): | |
return x + y | |
def substract(x, y): | |
return x - y | |
def multiply(x, y): | |
return x * y | |
def divide(x, y): | |
if y == 0: | |
raise ValueError("cannot divide a number by zero") | |
return x/y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment