From 94f04c3e3145f5e26fa66a0b3dc99ef77ff68811 Mon Sep 17 00:00:00 2001 From: Shrenikj21 Date: Fri, 15 Dec 2023 10:49:11 +0530 Subject: [PATCH] Add a clear message describing your changes --- Simple-Calculator.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/Simple-Calculator.py b/Simple-Calculator.py index 29f529f..d03c174 100644 --- a/Simple-Calculator.py +++ b/Simple-Calculator.py @@ -60,25 +60,4 @@ def modulo(num1, num2): except ValueError: print("Invalid input. Please enter a number.") else: - print("Invalid option. Try running the program again.") -# performs the function based on the input received -if choice == 1: - # returns added numbers - print(num1, "+", num2, "=", add(num1, num2)) - -elif choice == 2: - # returns subtracted numbers - print(num1, "-", num2, "=", subtract(num1, num2)) - -elif choice == 3: - # returns multiplied numbers - print(num1, "x", num2, "=", multiply(num1, num2)) - -elif choice == 4: - # returns divided numbers - print(num1, "/", num2, "=", divide(num1, num2)) - -elif choice == 5: - # returns modulus (i.e. the remainder of num1/num2) - print(num1, "%", num2, "=", modulo(num1, num2))