Skip to content

Instantly share code, notes, and snippets.

@saulcosta
Created April 21, 2019 04:40
Show Gist options
  • Save saulcosta/10d422704a93a87b586389da69c0d08f to your computer and use it in GitHub Desktop.
Save saulcosta/10d422704a93a87b586389da69c0d08f to your computer and use it in GitHub Desktop.
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