#
# write a miropython scripts to design a calculator having following the operation + - * / // %
# on two numbers use the input functions
a = int(input("Enter the value of a: "))
b = int(input("Enter the value of b: "))
operation = input("Enter the operation: ")
# result = None
# if operation == "+":
# result = a + b
# elif operation == "-":
# result = a - b
# elif operation == "*":
# result = a * b
# elif operation == "/":
# result = a / b
# elif operation == "//":
# result = a // b
# elif operation == "%":
# result = a % b
# else:
# print("Invalid operation")
# if result is not None:
# print(f"The result of {a} {operation} {b} is: {result}")
def addition(a,b):
return a+b
def sub(a,b):
return a-b
def multi(a,b):
return a*b
def divi(a,b):
return a/b
def modules(a,b):
return a%b
def dd(a,b):
return a//b
if operation == "+":
addition
elif operation == "-":
sub
elif operation == "*":
multi
elif operation == "/":
divi
elif operation == "//":
dd
elif operation == "%":
modules
else:
print("Invalid operation")