From d6f3acf883b0efda5dda120afae5cfbe499f62be Mon Sep 17 00:00:00 2001 From: ccoop129 Date: Tue, 20 Jan 2026 02:49:18 -0500 Subject: [PATCH 1/2] add functions to calculator --- calculator.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/calculator.py b/calculator.py index 24a2fef..76c4618 100644 --- a/calculator.py +++ b/calculator.py @@ -1,16 +1,11 @@ -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 - +def multiply(a,b): + return a * b -print("I'm going use the calculator functions to multiply 5 and 6") -x = multiply(5,6) -print(x) \ No newline at end of file +def divide(a,b): + return a/b \ No newline at end of file From 5ddf8a744a99faee9227ffe90407e99163c3b1af Mon Sep 17 00:00:00 2001 From: ccoop129 Date: Tue, 20 Jan 2026 02:50:28 -0500 Subject: [PATCH 2/2] added multiplication announcement --- calculator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/calculator.py b/calculator.py index 76c4618..e985691 100644 --- a/calculator.py +++ b/calculator.py @@ -8,4 +8,8 @@ def multiply(a,b): return a * b def divide(a,b): - return a/b \ No newline at end of file + return a/b + +print("I'm going use the calculator functions to multiply 5 and 6") +x = multiply(5,6) +print(x) \ No newline at end of file