Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions calculator.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
def multiply(a,b):
return a * b

def add(a,b):
return a+b

def subtract(a,b):
return a-b

def divide(a,b):
return a/b


print("I'm going use the calculator functions to multiply 5 and 6")
x = multiply(5,6)
print(x)
def add(a, b):
return a + b

def subtract(a, b):
return a - b

def multiply(a, b):
return a * b

def divide(a, b):
return a / b

print("I'm going use the calculator functions to divide 30 by 6")
x = divide(30,6)
print(x)
Loading