From d562cb47b0a2e87516be702c8f1156d96d330557 Mon Sep 17 00:00:00 2001 From: GanusM Date: Thu, 13 Nov 2025 14:45:29 +0000 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=B0=D0=BB=D1=8C=D0=BA=D1=83=D0=BB?= =?UTF-8?q?=D1=8F=D1=82=D0=BE=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calculator.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 calculator.py diff --git a/calculator.py b/calculator.py new file mode 100644 index 0000000..ddc9a7a --- /dev/null +++ b/calculator.py @@ -0,0 +1,10 @@ +a = float(input("Введите число:")) +op = input("Введите операцию,(+ *)") +b = float(input("Введите второе число:")) +if op == "+": + otvet = a + b +elif op =="*": + otvet = a * b +else: + otvet = "к сожалению в этой версии нет / и - :(" +print(f"Результат: {otvet}")