From 589bd608b8ad329938f1d387216156ca9376344a Mon Sep 17 00:00:00 2001 From: github-cloudlabsuser-1217 <167985994+github-cloudlabsuser-1217@users.noreply.github.com> Date: Tue, 24 Jun 2025 04:45:05 +0000 Subject: [PATCH] Create card_draw.py cREATE --- calculator.py | 14 ++++++++++++++ hello.py | 0 2 files changed, 14 insertions(+) create mode 100644 calculator.py create mode 100644 hello.py diff --git a/calculator.py b/calculator.py new file mode 100644 index 00000000..ef944f44 --- /dev/null +++ b/calculator.py @@ -0,0 +1,14 @@ +class Calculator: + def add(self, a, b): + return a + b + + def subtract(self, a, b): + return a - b + + def multiply(self, a, b): + return a * b + + def divide(self, a, b): + if b == 0: + raise ValueError("Cannot divide by zero.") + return a / b \ No newline at end of file diff --git a/hello.py b/hello.py new file mode 100644 index 00000000..e69de29b