Created
April 21, 2019 04:40
-
-
Save saulcosta/10d422704a93a87b586389da69c0d08f to your computer and use it in GitHub Desktop.
This file contains 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 subtract(x, y): | |
return x - y | |
def multiply(x, y): | |
return x * y | |
def divide(x, y): | |
return x / y | |
if __name__ == '__main__': | |
x = int(input('Please enter a number: ')) | |
y = int(input('Please enter another number: ')) | |
print(add(x, y)) | |
print(subtract(x, y)) | |
print(multiply(x, y)) | |
print(divide(x, y)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment